/[gentoo-x86]/x11-base/xorg-server/files/1.4-0009-Don-t-break-grab-and-focus-state-for-a-window-when-r.patch
Gentoo

Contents of /x11-base/xorg-server/files/1.4-0009-Don-t-break-grab-and-focus-state-for-a-window-when-r.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Mon Sep 28 07:41:03 2009 UTC (4 years, 10 months ago) by remi
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
FILE REMOVED
x11-base/xorg-server: drop old ebuilds, prune ${FILESDIR}
(Portage version: 2.2_rc42/cvs/Linux i686)

1 From a6a7fadbb03ee99312dfb15ac478ab3c414c1c0b Mon Sep 17 00:00:00 2001
2 From: =?utf-8?q?Kristian=20H=C3=B8gsberg?= <krh@redhat.com>
3 Date: Wed, 16 Jan 2008 20:24:11 -0500
4 Subject: [PATCH] Don't break grab and focus state for a window when redirecting it.
5
6 Composite uses an unmap/map cycle to trigger backing pixmap allocation
7 and cliprect recomputation when a window is redirected or unredirected.
8 To avoid protocol visible side effects, map and unmap events are
9 disabled temporarily. However, when a window is unmapped it is also
10 removed from grabs and loses focus, but these state changes are not
11 disabled.
12
13 This change supresses the unmap side effects during the composite
14 unmap/map cycle and fixes this bug:
15
16 http://bugzilla.gnome.org/show_bug.cgi?id=488264
17
18 where compiz would cause gnome-screensaver to lose its grab when
19 compiz unredirects the fullscreen lock window.
20 ---
21 dix/window.c | 3 ++-
22 1 files changed, 2 insertions(+), 1 deletions(-)
23
24 diff --git a/dix/window.c b/dix/window.c
25 index 33cf76b..1ccf126 100644
26 --- a/dix/window.c
27 +++ b/dix/window.c
28 @@ -2993,7 +2993,8 @@ UnrealizeTree(
29 }
30 #endif
31 (* Unrealize)(pChild);
32 - DeleteWindowFromAnyEvents(pChild, FALSE);
33 + if (MapUnmapEventsEnabled(pWin))
34 + DeleteWindowFromAnyEvents(pChild, FALSE);
35 if (pChild->viewable)
36 {
37 #ifdef DO_SAVE_UNDERS
38 --
39 1.5.3.8

  ViewVC Help
Powered by ViewVC 1.1.20