@@ -555,7 +555,7 @@ void update_strut(Panel *p)
|
|||||||
long struts[12] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
|
long struts[12] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
|
||||||
if (panel_horizontal) {
|
if (panel_horizontal) {
|
||||||
int height = p->area.height + p->marginy;
|
int height = p->area.height + p->marginy;
|
||||||
if (panel_strut_policy == STRUT_MINIMUM || (panel_strut_policy == STRUT_FOLLOW_SIZE && panel_autohide))
|
if (panel_strut_policy == STRUT_MINIMUM || (panel_strut_policy == STRUT_FOLLOW_SIZE && panel_autohide && p->is_hidden))
|
||||||
height = p->hidden_height;
|
height = p->hidden_height;
|
||||||
if (panel_position & TOP) {
|
if (panel_position & TOP) {
|
||||||
struts[2] = height + monitor.y;
|
struts[2] = height + monitor.y;
|
||||||
@@ -570,7 +570,7 @@ void update_strut(Panel *p)
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
int width = p->area.width + p->marginx;
|
int width = p->area.width + p->marginx;
|
||||||
if (panel_strut_policy == STRUT_MINIMUM || (panel_strut_policy == STRUT_FOLLOW_SIZE && panel_autohide))
|
if (panel_strut_policy == STRUT_MINIMUM || (panel_strut_policy == STRUT_FOLLOW_SIZE && panel_autohide && p->is_hidden))
|
||||||
width = p->hidden_width;
|
width = p->hidden_width;
|
||||||
if (panel_position & LEFT) {
|
if (panel_position & LEFT) {
|
||||||
struts[0] = width + monitor.x;
|
struts[0] = width + monitor.x;
|
||||||
|
|||||||
Reference in New Issue
Block a user