systray: Check icon position

This commit is contained in:
o9000 2015-06-14 12:23:34 +02:00
parent 8c9a9a111e
commit 19b40bc59e

View file

@ -730,7 +730,7 @@ void systray_render_icon_composited(void* t)
fprintf(stderr, "Couldn't get geometry of window!\n"); fprintf(stderr, "Couldn't get geometry of window!\n");
return; return;
} }
if (width != traywin->width || height != traywin->height) { if (width != traywin->width || height != traywin->height || xpos != 0 || ypos != 0) {
XMoveResizeWindow(server.dsp, traywin->win, 0, 0, traywin->width, traywin->height); XMoveResizeWindow(server.dsp, traywin->win, 0, 0, traywin->width, traywin->height);
traywin->render_timeout = add_timeout(50, 0, systray_render_icon_composited, traywin, &traywin->render_timeout); traywin->render_timeout = add_timeout(50, 0, systray_render_icon_composited, traywin, &traywin->render_timeout);
return; return;