[PATCH 10/11] xfree86/dga: Only send DGA events for master devices
Ville Syrjala
syrjala at sci.fi
Sun Jan 23 15:06:48 PST 2011
Signed-off-by: Ville Syrjala <syrjala at sci.fi>
---
hw/xfree86/common/xf86DGA.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/hw/xfree86/common/xf86DGA.c b/hw/xfree86/common/xf86DGA.c
index dc08cb9..eabd92c 100644
--- a/hw/xfree86/common/xf86DGA.c
+++ b/hw/xfree86/common/xf86DGA.c
@@ -1210,6 +1210,9 @@ DGAHandleEvent(int screen_num, InternalEvent *ev, DeviceIntPtr device)
if (!pScreenPriv)
return;
+ if (!IsMaster(device))
+ return;
+
switch (event->subtype) {
case KeyPress:
case KeyRelease:
--
1.7.3.4
More information about the xorg-devel
mailing list