all repos — tint2 @ 9224971407dcd95b853230d21032f13d9af1f33f

fork of the tint2 desktop panel for my custom setup - only minimized windows across all desktops for the taskbar

systray: Proper resize redirect handling
o9000 o9000
commit

9224971407dcd95b853230d21032f13d9af1f33f

parent

d492f80468095b597b254cc8b9c81bfbc4b9cfd4

1 files changed, 6 insertions(+), 3 deletions(-)

jump to
M src/systray/systraybar.csrc/systray/systraybar.c

@@ -838,17 +838,20 @@ Window root;

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;