Change _NET_WM_ICON_GEOMETRY on panel shrink (issue #634)

This commit is contained in:
o9000
2017-04-08 14:10:39 +02:00
parent e7375a186f
commit 0932cc1084
3 changed files with 18 additions and 0 deletions

View File

@@ -674,3 +674,18 @@ void sort_taskbar_for_win(Window win)
}
}
}
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);
}
}
}