mutter/src/backends/x11
Marco Trevisan (Treviño) 427670cc63 device-manager-x11: Ignore events if no source device is set
There might be some inconsistent event for which we don't have a known
source device.

In the current state we don't handle them and we could crash when getting
the current device tool.

So, add an utility function that retrieves the source device for an event
that warns if no device is found, and use this for Motion, Key and Button
events.

In case we don't have a valid source in such case, just return early instead
of trying to generate invalid clutter events.

https://gitlab.gnome.org/GNOME/mutter/merge_requests/823
2019-11-23 01:38:16 +00:00
..
cm compositor: Move out X11 compositing code into sub type 2019-08-19 08:44:58 +00:00
nested backends: Move nested stage to src/backends/x11/nested 2019-08-24 08:59:08 +00:00
meta-backend-x11.c x11: Limit touch replay pointer events to when replaying 2019-10-28 18:40:44 +00:00
meta-backend-x11.h Clean up include macros mess 2018-11-06 17:17:36 +01:00
meta-barrier-x11.c Use G_DECLARE_DERIVABLE/FINAL_TYPE on some types 2018-12-21 19:48:50 +00:00
meta-barrier-x11.h Use G_DECLARE_DERIVABLE/FINAL_TYPE on some types 2018-12-21 19:48:50 +00:00
meta-clutter-backend-x11.c clutter-backend-x11: Don't push keymap events to clutter 2019-10-10 13:00:02 +00:00
meta-clutter-backend-x11.h Make mutter manage its own clutter backends 2016-07-20 14:23:48 +08:00
meta-crtc-xrandr.c backend: Move GPU ownership from the monitor manager to the backend 2019-06-20 13:31:55 +00:00
meta-crtc-xrandr.h backends: Split out CRTC/output management to MetaGpu 2017-10-05 18:05:20 -04:00
meta-cursor-renderer-x11.c Clean up include macros mess 2018-11-06 17:17:36 +01:00
meta-cursor-renderer-x11.h Clean up include macros mess 2018-11-06 17:17:36 +01:00
meta-device-manager-x11.c device-manager-x11: Ignore events if no source device is set 2019-11-23 01:38:16 +00:00
meta-device-manager-x11.h clutter: Move X11 input to src/backends/x11 2019-08-24 08:59:08 +00:00
meta-event-x11.c event-x11: Use CLUTTER prefix for X11 filter docs 2019-10-10 13:00:02 +00:00
meta-event-x11.h clutter: Move X11 input to src/backends/x11 2019-08-24 08:59:08 +00:00
meta-gpu-xrandr.c backend: Move GPU ownership from the monitor manager to the backend 2019-06-20 13:31:55 +00:00
meta-gpu-xrandr.h backend: Move GPU ownership from the monitor manager to the backend 2019-06-20 13:31:55 +00:00
meta-input-device-tool-x11.c clutter: Move X11 input to src/backends/x11 2019-08-24 08:59:08 +00:00
meta-input-device-tool-x11.h clutter: Move X11 input to src/backends/x11 2019-08-24 08:59:08 +00:00
meta-input-device-x11.c cleanup: Use g_clear_handle_id() for g_source_remove() 2019-11-22 01:27:40 +01:00
meta-input-device-x11.h backends: Don't use glib types in new X11 backend objects 2019-08-24 08:59:08 +00:00
meta-input-settings-x11.c input-settings/x11: Add missing clutter_x11_trap_x_errors around XIGetProperty 2019-11-10 19:45:08 +01:00
meta-input-settings-x11.h Clean up include macros mess 2018-11-06 17:17:36 +01:00
meta-keymap-x11.c backends: Don't use glib types in new X11 backend objects 2019-08-24 08:59:08 +00:00
meta-keymap-x11.h backends: Don't use glib types in new X11 backend objects 2019-08-24 08:59:08 +00:00
meta-monitor-manager-xrandr.c backend: Move GPU ownership from the monitor manager to the backend 2019-06-20 13:31:55 +00:00
meta-monitor-manager-xrandr.h Clean up include macros mess 2018-11-06 17:17:36 +01:00
meta-output-xrandr.c backend: Move GPU ownership from the monitor manager to the backend 2019-06-20 13:31:55 +00:00
meta-output-xrandr.h backends: Split out CRTC/output management to MetaGpu 2017-10-05 18:05:20 -04:00
meta-renderer-x11.c cogl: Remove GLX "threaded swap wait" used on Nvidia 2019-09-02 18:12:10 +08:00
meta-renderer-x11.h renderer-x11: Split up into CM and Nested renderers 2017-04-07 22:30:49 +08:00
meta-stage-x11.c cleanup: Use g_clear_handle_id() for g_source_remove() 2019-11-22 01:27:40 +01:00
meta-stage-x11.h clutter: Move X11 input to src/backends/x11 2019-08-24 08:59:08 +00:00
meta-virtual-input-device-x11.c clutter: Move X11 input to src/backends/x11 2019-08-24 08:59:08 +00:00
meta-virtual-input-device-x11.h clutter: Move X11 input to src/backends/x11 2019-08-24 08:59:08 +00:00
meta-xkb-a11y-x11.c backends: Don't use glib types in new X11 backend objects 2019-08-24 08:59:08 +00:00
meta-xkb-a11y-x11.h clutter: Move X11 input to src/backends/x11 2019-08-24 08:59:08 +00:00