[gnome-settings-daemon] common: Capture both button press and release



commit 82864776d890d1b29e6ae53b5d2800d37e0849e0
Author: Bastien Nocera <hadess hadess net>
Date:   Tue Feb 14 20:09:39 2012 +0000

    common: Capture both button press and release

 plugins/common/gsd-keygrab.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/plugins/common/gsd-keygrab.c b/plugins/common/gsd-keygrab.c
index 755cc24..c8c2e80 100644
--- a/plugins/common/gsd-keygrab.c
+++ b/plugins/common/gsd-keygrab.c
@@ -382,6 +382,7 @@ grab_button_real (int        deviceid,
 
 		memset (mask, 0, sizeof (mask));
 		XISetMask (mask, XI_ButtonRelease);
+		XISetMask (mask, XI_ButtonPress);
 
 		evmask.deviceid = deviceid;
 		evmask.mask_len = sizeof (mask);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]