xserver 1.8.99.906
xserver-1.8-enter-leave-woes.patch: drop, upstream.
This commit is contained in:
parent
d7b2a98216
commit
f2737afa77
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +1,2 @@
|
|||||||
xorg-server-20100716.tar.xz
|
xorg-server-20100716.tar.xz
|
||||||
|
xorg-server-1.8.99.906.tar.bz2
|
||||||
|
2
sources
2
sources
@ -1 +1 @@
|
|||||||
3dfe6f7d8a922d804bca4e3e85415d1c xorg-server-20100716.tar.xz
|
d4ab361cacc35e2ed4587019980b7e57 xorg-server-1.8.99.906.tar.bz2
|
||||||
|
@ -25,12 +25,12 @@
|
|||||||
%define extension_minor 0
|
%define extension_minor 0
|
||||||
|
|
||||||
%define pkgname xorg-server
|
%define pkgname xorg-server
|
||||||
%define gitdate 20100716
|
#define gitdate 20100716
|
||||||
|
|
||||||
Summary: X.Org X11 X server
|
Summary: X.Org X11 X server
|
||||||
Name: xorg-x11-server
|
Name: xorg-x11-server
|
||||||
Version: 1.8.99.905
|
Version: 1.8.99.906
|
||||||
Release: 3%{?gitdate:.%{gitdate}}%{dist}
|
Release: 1%{?gitdate:.%{gitdate}}%{dist}
|
||||||
URL: http://www.x.org
|
URL: http://www.x.org
|
||||||
License: MIT
|
License: MIT
|
||||||
Group: User Interface/X
|
Group: User Interface/X
|
||||||
@ -97,9 +97,6 @@ Patch6053: xserver-1.8-disable-vboxvideo.patch
|
|||||||
|
|
||||||
# https://bugs.freedesktop.org/show_bug.cgi?id=28672
|
# https://bugs.freedesktop.org/show_bug.cgi?id=28672
|
||||||
Patch7000: xserver-1.8.0-no-xorg.patch
|
Patch7000: xserver-1.8.0-no-xorg.patch
|
||||||
# https://bugzilla.redhat.com/show_bug.cgi?id=538482
|
|
||||||
# this patch needs some exposure for side-effects before upstreaming
|
|
||||||
Patch7001: xserver-1.8-enter-leave-woes.patch
|
|
||||||
|
|
||||||
%define moduledir %{_libdir}/xorg/modules
|
%define moduledir %{_libdir}/xorg/modules
|
||||||
%define drimoduledir %{_libdir}/dri
|
%define drimoduledir %{_libdir}/dri
|
||||||
@ -549,6 +546,10 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%{xserver_source_dir}
|
%{xserver_source_dir}
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Aug 13 2010 Peter Hutterer <peter.hutterer@redhat.com> 1.8.99.906-1
|
||||||
|
- xserver 1.8.99.906
|
||||||
|
- xserver-1.8-enter-leave-woes.patch: drop, upstream.
|
||||||
|
|
||||||
* Mon Aug 02 2010 Adam Jackson <ajax@redhat.com> 1.8.99.905-3
|
* Mon Aug 02 2010 Adam Jackson <ajax@redhat.com> 1.8.99.905-3
|
||||||
- Drop RANDR debugging patch, not useful.
|
- Drop RANDR debugging patch, not useful.
|
||||||
|
|
||||||
|
@ -1,120 +0,0 @@
|
|||||||
From a4cf79ec4f1910e6c3f800eea851f95cd2bbabfa Mon Sep 17 00:00:00 2001
|
|
||||||
From: Peter Hutterer <peter.hutterer@who-t.net>
|
|
||||||
Date: Thu, 15 Jul 2010 13:24:14 +1000
|
|
||||||
Subject: [PATCH] dix: hack around enter/leave event issues for grabbed devices (#27804)
|
|
||||||
|
|
||||||
The current core enter/leave does not cater for device grabs during
|
|
||||||
enter/leave events. If a window W contains a pointer P1 and a client grabs a
|
|
||||||
pointer P2, this pointer will not generate enter/leave events inside this
|
|
||||||
window.
|
|
||||||
|
|
||||||
Hack around this by assuming that a grabbed device will always send
|
|
||||||
enter/leave events.
|
|
||||||
|
|
||||||
X.Org Bug 27804 <http://bugs.freedesktop.org/show_bug.cgi?id=27804>
|
|
||||||
|
|
||||||
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
|
|
||||||
---
|
|
||||||
dix/enterleave.c | 27 ++++++++++++++++++---------
|
|
||||||
1 files changed, 18 insertions(+), 9 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/dix/enterleave.c b/dix/enterleave.c
|
|
||||||
index eefa7ab..7a3ecf5 100644
|
|
||||||
--- a/dix/enterleave.c
|
|
||||||
+++ b/dix/enterleave.c
|
|
||||||
@@ -78,10 +78,19 @@ static WindowPtr FocusWindows[MAXDEVICES];
|
|
||||||
* window.
|
|
||||||
*/
|
|
||||||
static BOOL
|
|
||||||
-HasPointer(WindowPtr win)
|
|
||||||
+HasPointer(DeviceIntPtr dev, WindowPtr win)
|
|
||||||
{
|
|
||||||
int i;
|
|
||||||
|
|
||||||
+ /* FIXME: The enter/leave model does not cater for grabbed devices. For
|
|
||||||
+ * now, a quickfix: if the device about to send an enter/leave event to
|
|
||||||
+ * a window is grabbed, assume there is no pointer in that window.
|
|
||||||
+ * Fixes fdo 27804.
|
|
||||||
+ * There isn't enough beer in my fridge to fix this properly.
|
|
||||||
+ */
|
|
||||||
+ if (dev->deviceGrab.grab)
|
|
||||||
+ return FALSE;
|
|
||||||
+
|
|
||||||
for (i = 0; i < MAXDEVICES; i++)
|
|
||||||
if (PointerWindows[i] == win)
|
|
||||||
return TRUE;
|
|
||||||
@@ -270,7 +279,7 @@ CoreEnterNotifies(DeviceIntPtr dev,
|
|
||||||
may need to be changed from Virtual to NonlinearVirtual depending
|
|
||||||
on the previous P(W). */
|
|
||||||
|
|
||||||
- if (!HasPointer(parent) && !FirstPointerChild(parent))
|
|
||||||
+ if (!HasPointer(dev, parent) && !FirstPointerChild(parent))
|
|
||||||
CoreEnterLeaveEvent(dev, EnterNotify, mode, detail, parent,
|
|
||||||
child->drawable.id);
|
|
||||||
}
|
|
||||||
@@ -309,7 +318,7 @@ CoreLeaveNotifies(DeviceIntPtr dev,
|
|
||||||
|
|
||||||
/* If one window has a pointer or a child with a pointer, skip some
|
|
||||||
* work and exit. */
|
|
||||||
- if (HasPointer(win) || FirstPointerChild(win))
|
|
||||||
+ if (HasPointer(dev, win) || FirstPointerChild(win))
|
|
||||||
return;
|
|
||||||
|
|
||||||
CoreEnterLeaveEvent(dev, LeaveNotify, mode, detail, win, child->drawable.id);
|
|
||||||
@@ -373,7 +382,7 @@ CoreEnterLeaveNonLinear(DeviceIntPtr dev,
|
|
||||||
vice versa depending on the the new P(W)
|
|
||||||
*/
|
|
||||||
|
|
||||||
- if (!HasPointer(A))
|
|
||||||
+ if (!HasPointer(dev, A))
|
|
||||||
{
|
|
||||||
WindowPtr child = FirstPointerChild(A);
|
|
||||||
if (child)
|
|
||||||
@@ -417,7 +426,7 @@ CoreEnterLeaveNonLinear(DeviceIntPtr dev,
|
|
||||||
The detail may need to be changed from Ancestor to Nonlinear
|
|
||||||
or vice-versa depending on the previous P(W). */
|
|
||||||
|
|
||||||
- if (!HasPointer(B))
|
|
||||||
+ if (!HasPointer(dev, B))
|
|
||||||
{
|
|
||||||
WindowPtr child = FirstPointerChild(B);
|
|
||||||
if (child)
|
|
||||||
@@ -455,7 +464,7 @@ CoreEnterLeaveToAncestor(DeviceIntPtr dev,
|
|
||||||
The detail may need to be changed from Ancestor to Nonlinear or
|
|
||||||
vice versa depending on the the new P(W)
|
|
||||||
*/
|
|
||||||
- if (!HasPointer(A))
|
|
||||||
+ if (!HasPointer(dev, A))
|
|
||||||
{
|
|
||||||
WindowPtr child = FirstPointerChild(A);
|
|
||||||
if (child)
|
|
||||||
@@ -479,7 +488,7 @@ CoreEnterLeaveToAncestor(DeviceIntPtr dev,
|
|
||||||
P(W) changes from a descendant to W itself. The subwindow
|
|
||||||
field should be set to the child containing the old P(W) <<< WRONG */
|
|
||||||
|
|
||||||
- if (!HasPointer(B))
|
|
||||||
+ if (!HasPointer(dev, B))
|
|
||||||
CoreEnterLeaveEvent(dev, EnterNotify, mode, NotifyInferior, B, None);
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -507,7 +516,7 @@ CoreEnterLeaveToDescendant(DeviceIntPtr dev,
|
|
||||||
P(W) changes from W to a descendant of W. The subwindow field
|
|
||||||
is set to the child containing the new P(W) <<< THIS IS WRONG */
|
|
||||||
|
|
||||||
- if (!HasPointer(A))
|
|
||||||
+ if (!HasPointer(dev, A))
|
|
||||||
CoreEnterLeaveEvent(dev, LeaveNotify, mode, NotifyInferior, A, None);
|
|
||||||
|
|
||||||
|
|
||||||
@@ -531,7 +540,7 @@ CoreEnterLeaveToDescendant(DeviceIntPtr dev,
|
|
||||||
The detail may need to be changed from Ancestor to Nonlinear
|
|
||||||
or vice-versa depending on the previous P(W). */
|
|
||||||
|
|
||||||
- if (!HasPointer(B))
|
|
||||||
+ if (!HasPointer(dev, B))
|
|
||||||
{
|
|
||||||
WindowPtr child = FirstPointerChild(B);
|
|
||||||
if (child)
|
|
||||||
--
|
|
||||||
1.7.1
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user