Taskbar: Use consistent behavior when showing/hiding sticky (all desktop) windows
o9000 o9000
1 files changed,
6 insertions(+),
1 deletions(-)
jump to
M
src/taskbar/task.c
→
src/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; }