all repos — tint2 @ 2d67984536db9553fe0e2e0c85a4d91c7209e26b

fork of the tint2 desktop panel for my custom setup - only minimized windows across all desktops for the taskbar

Revert to the old autohide style (issues #640, #657)
o9000 mrovi9000@gmail.com
commit

2d67984536db9553fe0e2e0c85a4d91c7209e26b

parent

e042bc3a17c543982c09d29f5dd8836ea2b0ec0a

1 files changed, 2 insertions(+), 2 deletions(-)

jump to
M src/panel.csrc/panel.c

@@ -555,7 +555,7 @@ Monitor monitor = server.monitors[p->monitor];

long struts[12] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; if (panel_horizontal) { 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; if (panel_position & TOP) { struts[2] = height + monitor.y;

@@ -570,7 +570,7 @@ struts[11] = p->posx + p->area.width - 1;

} } else { 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; if (panel_position & LEFT) { struts[0] = width + monitor.x;