From f5be9cb93c3a85572d741d56acb891bb56faf6a0 Mon Sep 17 00:00:00 2001 From: =?utf-8?q?Kristian=20H=C3=B8gsberg?= Date: Wed, 16 Jan 2008 20:24:11 -0500 Subject: [PATCH] Don't break grab and focus state for a window when redirecting it. --- dix/window.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/dix/window.c b/dix/window.c index f65fb84..ccfec2b 100644 --- a/dix/window.c +++ b/dix/window.c @@ -3022,7 +3022,8 @@ UnrealizeTree( } #endif (* Unrealize)(pChild); - DeleteWindowFromAnyEvents(pChild, FALSE); + if (MapUnmapEventsEnabled(pWin)) + DeleteWindowFromAnyEvents(pChild, FALSE); if (pChild->viewable) { #ifdef DO_SAVE_UNDERS -- 1.5.3.7