From 19b40bc59e7bda467d6bb07ebf2bdf6cdef9cc31 Mon Sep 17 00:00:00 2001 From: o9000 Date: Sun, 14 Jun 2015 12:23:34 +0200 Subject: [PATCH] systray: Check icon position --- src/systray/systraybar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/systray/systraybar.c b/src/systray/systraybar.c index 41ac402..4c9ee29 100644 --- a/src/systray/systraybar.c +++ b/src/systray/systraybar.c @@ -730,7 +730,7 @@ void systray_render_icon_composited(void* t) fprintf(stderr, "Couldn't get geometry of window!\n"); 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); traywin->render_timeout = add_timeout(50, 0, systray_render_icon_composited, traywin, &traywin->render_timeout); return;