From 9224971407dcd95b853230d21032f13d9af1f33f Mon Sep 17 00:00:00 2001 From: o9000 Date: Fri, 31 Jul 2015 09:58:17 +0200 Subject: [PATCH] systray: Proper resize redirect handling --- src/systray/systraybar.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/systray/systraybar.c b/src/systray/systraybar.c index 42b305a..73eaf1a 100644 --- a/src/systray/systraybar.c +++ b/src/systray/systraybar.c @@ -838,17 +838,20 @@ void systray_resize_icon(void* t) if (!XGetGeometry(server.dsp, traywin->win, &root, &xpos, &ypos, &width, &height, &border_width, &depth)) { return; } else { - if (xpos != 0 || ypos != 0 || width != traywin->width || height != traywin->height) { + if (1 || xpos != 0 || ypos != 0 || width != traywin->width || height != traywin->height) { if (systray_profile) fprintf(stderr, "XMoveResizeWindow(server.dsp, traywin->win = %ld, 0, 0, traywin->width = %d, traywin->height = %d)\n", traywin->win, traywin->width, traywin->height); - XMoveResizeWindow(server.dsp, traywin->win, 0, 0, traywin->width, traywin->height); + if (0) { + XMoveResizeWindow(server.dsp, traywin->win, 0, 0, traywin->width, traywin->height); + } if (0) { XWindowChanges changes; changes.x = changes.y = 0; changes.width = traywin->width; changes.height = traywin->height; XConfigureWindow(server.dsp, traywin->win, CWX|CWY|CWWidth|CWHeight, &changes); - + } + if (1) { XConfigureEvent ev; ev.type = ConfigureNotify; ev.serial = 0;