all repos — tint2 @ 7ffc2208916a473cc5f42b0b142d3f86422a1ad8

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

Taskbar: Use consistent behavior when showing/hiding sticky (all desktop) windows
o9000 o9000
commit

7ffc2208916a473cc5f42b0b142d3f86422a1ad8

parent

2799fe9346293de81443d7455d84a130046817dc

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

jump to
M src/taskbar/task.csrc/taskbar/task.c

@@ -521,9 +521,14 @@ if (tsk1->state_pix[state] == 0)

tsk1->area.redraw = 1; if (state == TASK_ACTIVE && g_slist_find(urgent_list, tsk1)) del_urgent(tsk1); - // Show only the active task int hide = 0; + Taskbar *taskbar = (Taskbar *)tsk1->area.parent; + if (tsk->desktop == ALLDESKTOP && server.desktop != taskbar->desktop) { + // Hide ALLDESKTOP task on non-current desktop + hide = 1; + } if (hide_inactive_tasks) { + // Show only the active task if (state != TASK_ACTIVE) { hide = 1; }