After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 703969 - Select for events with XIAllMasterDevices under XI2
Select for events with XIAllMasterDevices under XI2
Status: RESOLVED FIXED
Product: clutter
Classification: Platform
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: clutter-maint
clutter-maint
Depends on:
Blocks: 697192
 
 
Reported: 2013-07-10 21:22 UTC by Jasper St. Pierre (not reading bugmail)
Modified: 2013-07-11 18:19 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
backend-x11: Remove bad branch prediction (5.13 KB, patch)
2013-07-10 21:22 UTC, Jasper St. Pierre (not reading bugmail)
committed Details | Review
x11: Remove support for XInput 1 (26.25 KB, patch)
2013-07-10 21:22 UTC, Jasper St. Pierre (not reading bugmail)
committed Details | Review
device-manager: Don't pass the event mask around (10.87 KB, patch)
2013-07-10 21:22 UTC, Jasper St. Pierre (not reading bugmail)
committed Details | Review
device-manager: Select for events on XIAllMasterDevices (9.20 KB, patch)
2013-07-10 21:23 UTC, Jasper St. Pierre (not reading bugmail)
committed Details | Review

Description Jasper St. Pierre (not reading bugmail) 2013-07-10 21:22:46 UTC
This is a cleanup that helps make mutter's gross hack to re-enable pointer
emulation more possible.
Comment 1 Jasper St. Pierre (not reading bugmail) 2013-07-10 21:22:49 UTC
Created attachment 248875 [details] [review]
backend-x11: Remove bad branch prediction

This will only get once, at in Clutter initialization time.
Comment 2 Jasper St. Pierre (not reading bugmail) 2013-07-10 21:22:54 UTC
Created attachment 248876 [details] [review]
x11: Remove support for XInput 1

Now we either use core X11 or XInput 2.
Comment 3 Jasper St. Pierre (not reading bugmail) 2013-07-10 21:22:59 UTC
Created attachment 248877 [details] [review]
device-manager: Don't pass the event mask around

There's no point in doing this, as we always use a constant event mask.
Simply do what everything else does.
Comment 4 Jasper St. Pierre (not reading bugmail) 2013-07-10 21:23:16 UTC
Created attachment 248878 [details] [review]
device-manager: Select for events on XIAllMasterDevices

This removes a bit of work that we have to do for every device, and makes it
easy for mutter to patch out parts of the event mask it doesn't want.
Comment 5 Emmanuele Bassi (:ebassi) 2013-07-11 17:45:24 UTC
Review of attachment 248875 [details] [review]:

okay
Comment 6 Emmanuele Bassi (:ebassi) 2013-07-11 17:51:07 UTC
Review of attachment 248876 [details] [review]:

::: clutter/x11/clutter-input-device-core-x11.c
@@ +36,1 @@
 #define MAX_DEVICE_CLASSES      13

this can also go away, since it's only used inside the HAVE_XINPUT code paths.

@@ +45,1 @@
   gint *axis_data;

axis_data can go away as well.

@@ +62,1 @@
   g_free (device_x11->axis_data);

I think this should have also been included inside the HAVE_XINPUT check, since it's only going to be set to be !NULL there. the whole dispose() implementation should go away.
Comment 7 Emmanuele Bassi (:ebassi) 2013-07-11 17:52:51 UTC
Review of attachment 248877 [details] [review]:

okay.
Comment 8 Emmanuele Bassi (:ebassi) 2013-07-11 17:56:09 UTC
Review of attachment 248878 [details] [review]:

looks good.
Comment 9 Jasper St. Pierre (not reading bugmail) 2013-07-11 18:19:14 UTC
Attachment 248875 [details] pushed as 0b32f99 - backend-x11: Remove bad branch prediction
Attachment 248876 [details] pushed as e38ea7a - x11: Remove support for XInput 1
Attachment 248877 [details] pushed as 0326888 - device-manager: Don't pass the event mask around
Attachment 248878 [details] pushed as e62cf47 - device-manager: Select for events on XIAllMasterDevices