diff options
Diffstat (limited to 'x11-base/xorg-server/files/xorg-server-1.11-dix-pointerrootwin-send-focusin.patch')
-rw-r--r-- | x11-base/xorg-server/files/xorg-server-1.11-dix-pointerrootwin-send-focusin.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/x11-base/xorg-server/files/xorg-server-1.11-dix-pointerrootwin-send-focusin.patch b/x11-base/xorg-server/files/xorg-server-1.11-dix-pointerrootwin-send-focusin.patch new file mode 100644 index 000000000000..d548c898d03a --- /dev/null +++ b/x11-base/xorg-server/files/xorg-server-1.11-dix-pointerrootwin-send-focusin.patch @@ -0,0 +1,27 @@ +From 3ce102c362cadcd7087bdcf48440d9498eaf77d0 Mon Sep 17 00:00:00 2001 +From: Peter Hutterer <peter.hutterer@who-t.net> +Date: Thu, 05 Jan 2012 12:08:01 +0000 +Subject: dix: on PointerRootWin send a FocusIn to the sprite window too + +XTS XSetDeviceFocus-7 + +Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> +Reviewed-by: Chase Douglas <chase.douglas@canonical.com> +--- +diff --git a/dix/enterleave.c b/dix/enterleave.c +index 2b8c7c5..89a82ab 100644 +--- a/dix/enterleave.c ++++ b/dix/enterleave.c +@@ -1299,7 +1299,10 @@ DeviceFocusEvents(DeviceIntPtr dev, + for (i = 0; i < nscreens; i++) + DeviceFocusEvent(dev, XI_FocusIn, mode, in, screenInfo.screens[i]->root); + if (to == PointerRootWin) ++ { + DeviceFocusInEvents(dev, GetCurrentRootWindow(dev), sprite->win, mode, NotifyPointer); ++ DeviceFocusEvent(dev, XI_FocusIn, mode, NotifyPointer, sprite->win); ++ } + } + else + { +-- +cgit v0.9.0.2-2-gbebe |