all repos — tint2 @ 0932cc1084ae2186373080b07e068e1ca2bb01f2

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

Change _NET_WM_ICON_GEOMETRY on panel shrink (issue #634)
o9000 mrovi9000@gmail.com
commit

0932cc1084ae2186373080b07e068e1ca2bb01f2

parent

e7375a186f516236f339a3afb9e6d934db0243ff

3 files changed, 18 insertions(+), 0 deletions(-)

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

@@ -1083,6 +1083,7 @@ panel->area.resize_needed = TRUE;

systray.area.resize_needed = TRUE; schedule_redraw(&systray.area); refresh_systray = TRUE; + update_minimized_icon_positions(panel); } }
M src/taskbar/taskbar.csrc/taskbar/taskbar.c

@@ -674,3 +674,18 @@ sort_tasks(task->area.parent);

} } } + +void update_minimized_icon_positions(void *p) +{ + Panel *panel = (Panel *)p; + for (int i = 0; i < panel->num_desktops; i++) { + Taskbar *taskbar = &panel->taskbar[i]; + if (!taskbar->area.on_screen) + continue; + for (GList *c = taskbar->area.children; c; c = c->next) { + Area *area = (Area *)c->data; + if (area->_on_change_layout) + area->_on_change_layout(area); + } + } +}
M src/taskbar/taskbar.hsrc/taskbar/taskbar.h

@@ -88,6 +88,8 @@

// Updates the visibility of all taskbars void update_all_taskbars_visibility(); +void update_minimized_icon_positions(void *p); + // Sorts the taskbar(s) on which the window is present. void sort_taskbar_for_win(Window win);