[PATCH 03/11] xfree86/dga: Install the DGA event handler when DGA2 is used
Ville Syrjala
syrjala at sci.fi
Sun Jan 23 15:06:41 PST 2011
The ET_DGAEvent handler is only installed when a client
requests relative events via DGA1. Do it also when a client
requests DGA2 events.
Signed-off-by: Ville Syrjala <syrjala at sci.fi>
---
hw/xfree86/common/xf86DGA.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/hw/xfree86/common/xf86DGA.c b/hw/xfree86/common/xf86DGA.c
index 1058a46..3cded85 100644
--- a/hw/xfree86/common/xf86DGA.c
+++ b/hw/xfree86/common/xf86DGA.c
@@ -446,6 +446,11 @@ xf86SetDGAMode(
pScreenPriv->grabMouse = TRUE;
pScreenPriv->grabKeyboard = TRUE;
+ if (!mieq_installed) {
+ mieqSetHandler(ET_DGAEvent, DGAHandleEvent);
+ mieq_installed = 1;
+ }
+
return Success;
}
--
1.7.3.4
More information about the xorg-devel
mailing list