msizanoen1
992e169d84
wayland/pointer-gestures: Fix crash in get_*_gesture after pointer is destroyed
...
Properly handle cases where the pointer object has already been
destroyed to prevent the compositor from crashing with a null pointer
dereference when a client invokes a get_*_gesture method after the
pointer object is destroyed e.g. when the current login session is not on
foreground.
Closes: https://gitlab.gnome.org/GNOME/mutter/-/issues/2237
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2690 >
2022-11-25 15:40:12 +00:00
Carlos Garnacho
57074463ab
wayland: Add pointer gesture cancellation internal API
...
This is ATM unused, but will be used to trigger cancellation of
any active gesture.
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2640 >
2022-09-29 12:36:43 +00:00
Carlos Garnacho
bbf57d092c
wayland: Keep track of active pointer gestures
...
Only one of them may be active at a time, so track the type
of active gesture so it can get properly cancelled.
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2640 >
2022-09-29 12:36:43 +00:00
Carlos Garnacho
b85f85d665
wayland: Refactor pointer gesture .end emission event
...
We will want to trigger this from multiple places for cancellation.
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2640 >
2022-09-29 12:36:43 +00:00
Jonas Ådahl
2f4a68c8c3
Clean up include macros mess
...
The order and way include macros were structured was chaotic, with no
real common thread between files. Try to tidy up the mess with some
common scheme, to make things look less messy.
2018-11-06 17:17:36 +01:00
Carlos Garnacho
15db18901c
wayland: Forward touchpad pinch n_fingers information to clients
...
We used to hardcode 2 because those were the only events we used to
handle. Now the ClutterTouchpadPinchEvent will tell us.
https://bugzilla.gnome.org/show_bug.cgi?id=765937
2016-11-04 16:28:30 +01:00
Jonas Ådahl
87f82d9fc0
wayland: Move device seat association to MetaWaylandInputDevice
...
Make the device <-> seat association permanent, and move it into
MetaWaylandInputDevice. A device will never be disassociated with a
seat, so there is no point in unsetting it.
https://bugzilla.gnome.org/show_bug.cgi?id=771305
2016-09-15 09:55:34 +08:00
Jonas Ådahl
e5a359a032
wayland: Make seat devices GObjects
...
This will make it possible to add signals and other GObject features.
https://bugzilla.gnome.org/show_bug.cgi?id=771050
2016-09-09 10:09:46 +08:00
Jonas Ådahl
95a68854ad
configure.ac: Add AC_GNU_SOURCE
...
We define it here and there already, and if we are to include private
cogl files, we need it in more places. Lets just add it everywhere.
https://bugzilla.gnome.org/show_bug.cgi?id=768976
2016-07-20 14:23:48 +08:00
Jonas Ådahl
2ee1c5fa61
wayland: Use pointer gestures protocol from wayand-protocols
...
Remove our own copy of the pointer gestures protocol, and us the one
installed by wayland-protocols. This also means the new fixed unstable
naming conventions are used for the new version of the protocol, which
is reflected in the change. No functional changes were made, it is only
a rename.
https://bugzilla.gnome.org/show_bug.cgi?id=758633
2015-11-26 16:55:35 +08:00
Carlos Garnacho
2fafa24305
wayland: Implement the wl_pointer_gesture_pinch interface
...
The pinch gesture resources are part of the MetaWaylandPointerClient, which
will be used during the propagation of CLUTTER_TOUCHPAD_PINCH events.
2015-08-10 17:23:23 +02:00