TrayWindow *traywin;
GSList *l;
int count, icon_size;
- int icons_per_column, icons_per_row, marging;
+ int icons_per_column=1, icons_per_row=1, marging=0;
if (panel_horizontal)
icon_size = sysbar->area.height;
error = FALSE;
XWindowAttributes attr;
+/* GSList *l;
+ printf("add_icon\n");
+ for (l = systray.list_icons; l ; l = l->next) {
+ traywin = (TrayWindow*)l->data;
+ //if (traywin->hide) continue;
+
+ XGetWindowAttributes(server.dsp, traywin->tray_id, &attr);
+ printf(" icon %lx, depth %d, width %d, height %d\n", traywin->tray_id, attr.depth, attr.width, attr.height);
+ }*/
XGetWindowAttributes(server.dsp, id, &attr);
+ //printf("last icon %lx, depth %d, width %d, height %d\n", id, attr.depth, attr.width, attr.height);
unsigned long mask = 0;
XSetWindowAttributes set_attr;
if (attr.depth != server.depth || systray.alpha != 100 || systray.brightness != 0 || systray.saturation != 0 ) {
// show the window
if (!traywin->hide)
- XMapRaised(server.dsp, traywin->tray_id);
+ XMapWindow(server.dsp, traywin->tray_id);
if (!traywin->hide && !panel->is_hidden)
XMapRaised(server.dsp, traywin->id);