mutter/clutter/x11
Carlos Garnacho 45935fbe29 x11: Avoid invalid ClutterInputDevice pointers in the device list
Due to the way add_device() invariably adds to the master/slave device
lists, while keeping ClutterInputDevices 1:1 with device IDs, it may
leave invalid pointers in the list if add_device() is called multiple
times for the same device ID. There are two situations where this may
happen:

1) If devices are disabled and later enabled: devices are added invariably
   to the master/slave lists on constructed(), but then on XIDeviceEnabled
   they'd get added yet again.
2) Racy cases where the ClutterDeviceManager is created around the same time
   XIHierarchyEvents are sent. When getting the XIDeviceInfo on constructed(),
   these devices may already appear as enabled, even though XIDeviceEnabled
   is seen through XIHierarchyEvents processed in the event loop sortly after.

   This last case can be seen when starting gnome-shell on a different tty,
   and entering in the one it's been spawned on, clutter initialization
   happens around the same time devices are added back because of the tty
   switch, and multiple extra ClutterInputDevices are created.

https://bugzilla.gnome.org/show_bug.cgi?id=724971
2014-02-25 10:15:03 +01:00
..
xsettings x11: Add the XSETTINGS machinery 2010-06-21 15:55:36 +01:00
clutter-backend-x11.c 2.0: Remove deprecated symbols from the tree 2013-04-05 18:48:03 +01:00
clutter-backend-x11.h x11: Add support for touch events 2012-03-19 14:29:24 +00:00
clutter-device-manager-core-x11.c x11: Ignore num lock / scroll lock for event state 2013-01-14 12:56:07 -05:00
clutter-device-manager-core-x11.h x11: Remove more private symbols 2011-01-25 11:00:20 +00:00
clutter-device-manager-xi2.c x11: Avoid invalid ClutterInputDevice pointers in the device list 2014-02-25 10:15:03 +01:00
clutter-device-manager-xi2.h Clean up the copyright and licensing blurbs 2011-01-21 10:25:43 +00:00
clutter-event-x11.c 2.0: Remove all Since: annotations 2013-04-05 18:48:01 +01:00
clutter-glx-texture-pixmap.c 2.0: Remove all Since: annotations 2013-04-05 18:48:01 +01:00
clutter-glx-texture-pixmap.h 2.0: Remove all Since: annotations 2013-04-05 18:48:01 +01:00
clutter-glx.h Rework the interaction between the Cogl and GDK / X11 backends. 2011-11-03 13:45:17 +00:00
clutter-input-device-core-x11.c Add an input device function to convert keycodes to evdev codes 2012-03-01 11:41:51 +00:00
clutter-input-device-core-x11.h x11: Do not try to access private structures 2011-12-01 13:44:21 +00:00
clutter-input-device-xi2.c x11/xi2: Factor the XKB group state in to fill events' modifier_state 2013-03-06 13:36:09 +01:00
clutter-input-device-xi2.h x11/xi2: Factor the XKB group state in to fill events' modifier_state 2013-03-06 13:36:09 +01:00
clutter-keymap-x11.c x11/clutter-keymap-x11: Honor XkbNewKeyboardNotify events 2013-02-24 18:35:53 +01:00
clutter-keymap-x11.h x11: Ignore num lock / scroll lock for event state 2013-01-14 12:56:07 -05:00
clutter-settings-x11.h x11/settings: Add Fontconfig/Timestamp key 2011-08-18 15:36:20 +01:00
clutter-stage-x11.c 2.0: Remove deprecated symbols from the tree 2013-04-05 18:48:03 +01:00
clutter-stage-x11.h 2.0: Remove deprecated symbols from the tree 2013-04-05 18:48:03 +01:00
clutter-x11-texture-pixmap.c 2.0: Remove all Since: annotations 2013-04-05 18:48:01 +01:00
clutter-x11-texture-pixmap.h 2.0: Remove all Since: annotations 2013-04-05 18:48:01 +01:00
clutter-x11.h 2.0: Include clutter headers conditionally in clutter-x11.h 2013-04-05 18:48:03 +01:00