systray: Withdraw window before reparenting
o9000 o9000
1 files changed,
1 insertions(+),
0 deletions(-)
jump to
M
src/systray/systraybar.c
→
src/systray/systraybar.c
@@ -634,6 +634,7 @@ error = FALSE;
old = XSetErrorHandler(window_error_handler); if (systray_profile) fprintf(stderr, "XReparentWindow(server.dsp, traywin->win, traywin->parent, 0, 0)\n"); + XWithdrawWindow(server.dsp, traywin->win, server.screen); XReparentWindow(server.dsp, traywin->win, traywin->parent, 0, 0); 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);