systray: Withdraw window before reparenting

This commit is contained in:
o9000 2015-07-16 20:11:59 +02:00
parent 5ce8023ef7
commit 9933399dc4

View file

@ -634,6 +634,7 @@ gboolean reparent_icon(TrayWindow *traywin)
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);