From 9933399dc41277aed9443e6ca1a1a3b202f763b8 Mon Sep 17 00:00:00 2001 From: o9000 Date: Thu, 16 Jul 2015 20:11:59 +0200 Subject: [PATCH] systray: Withdraw window before reparenting --- src/systray/systraybar.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/systray/systraybar.c b/src/systray/systraybar.c index af6c45f..5591ecf 100644 --- a/src/systray/systraybar.c +++ b/src/systray/systraybar.c @@ -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);