- else {
- posx = start;
- posy = systray.area.posy + systray.area.bg->border.width + systray.area.paddingxlr;
- }
-
- for (i=1, l = systray.list_icons; l ; i++, l = l->next) {
- traywin = (TrayWindow*)l->data;
- if (traywin->hide) continue;
-
- traywin->y = posy;
- traywin->x = posx;
- traywin->width = icon_size;
- traywin->height = icon_size;
- if (panel_horizontal) {
- if (i % icons_per_column)
- posy += icon_size + sysbar->area.paddingx;
- else {
- posy = start;
- posx += (icon_size + systray.area.paddingx);
- }
- }
- else {
- if (i % icons_per_row)
- posx += icon_size + systray.area.paddingx;
- else {
- posx = start;
- posy += (icon_size + systray.area.paddingx);
- }
- }
-
- // position and size the icon window
- XMoveResizeWindow(server.dsp, traywin->id, traywin->x, traywin->y, icon_size, icon_size);
- XResizeWindow(server.dsp, traywin->tray_id, icon_size, icon_size);
- }
- // resize force the redraw
- systray.area.redraw = 1;