From e1547a9f1f6d7991219b7711f4cacc2852dbf88c Mon Sep 17 00:00:00 2001 From: Ville Syrjala Date: Mon, 24 Jan 2011 01:06:41 +0200 Subject: [PATCH] xfree86/dga: Install the DGA event handler when DGA2 is used 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 Signed-off-by: Peter Hutterer Reviewed-by: Peter Hutterer --- hw/xfree86/common/xf86DGA.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hw/xfree86/common/xf86DGA.c b/hw/xfree86/common/xf86DGA.c index 1058a466c..3cded85bf 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; }