From 60645727036d9b0945b9ce71606d6067a54dd1e7 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Fri, 24 Apr 2009 14:59:18 +0100 Subject: [PATCH] [x11] Use XWithdrawWindow() Bug 1516 - Does not withdraw toplevels correctly clutter_stage_x11_hide() needs to use XWithdrawWindow(), not XUnmapWindow(). As it stands now, if the window is already unmapped (say the WM has minimized it), then the WM will not know that Clutter has closed the window and will keep the window managed, showing it in the task list and so forth. --- clutter/x11/clutter-stage-x11.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clutter/x11/clutter-stage-x11.c b/clutter/x11/clutter-stage-x11.c index aa091710f..2c4592ace 100644 --- a/clutter/x11/clutter-stage-x11.c +++ b/clutter/x11/clutter-stage-x11.c @@ -154,7 +154,7 @@ clutter_stage_x11_hide (ClutterActor *actor) ClutterStageX11 *stage_x11 = CLUTTER_STAGE_X11 (actor); if (stage_x11->xwin) - XUnmapWindow (stage_x11->xdpy, stage_x11->xwin); + XWithdrawWindow (stage_x11->xdpy, stage_x11->xwin, stage_x11->xscreen); } void