mutter/src/wayland
Jonas Dreßler e5b50d14cf wayland: Get device directly from clutter in get_grab_info() for touch case
When we call get_grab_info() to get the sequence, device and coordinates for
a touch window drag, as the device we use the device from the
MetaWaylandPointer, assuming that it's set to the core pointer.

In the case where there is no pointer device present on the seat (so no
mouse nor touchpad), the wayland pointer remains disabled though, and
pointer->device is NULL.

This means touch window dragging on hardware without pointer devices
present is broken (because MetaWindowDrag assumes that there's a valid
device passed in meta_window_drag_begin()). Fix it by taking the core
pointer directly from ClutterSeat instead of going the extra detour through
MetaWaylandPointer.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3238>
2023-09-03 09:12:29 +00:00
..
protocol wayland: Add X11 interop service client protocol 2023-02-13 15:34:24 +00:00
meta-cursor-sprite-wayland.c cursor-sprite: Register all cursor sprites with the cursor tracker 2021-12-22 16:22:08 +00:00
meta-cursor-sprite-wayland.h cleanup: Switch to pragma once 2023-08-07 22:24:36 +00:00
meta-pointer-confinement-wayland.c Update license access method 2023-08-30 08:48:23 +02:00
meta-pointer-confinement-wayland.h Update license access method 2023-08-30 08:48:23 +02:00
meta-pointer-lock-wayland.c mutter: Replace cairo_rectangle_int_t with MtkRectangle 2023-08-30 16:46:13 +02:00
meta-pointer-lock-wayland.h Update license access method 2023-08-30 08:48:23 +02:00
meta-selection-source-wayland-private.h Update license access method 2023-08-30 08:48:23 +02:00
meta-selection-source-wayland.c Update license access method 2023-08-30 08:48:23 +02:00
meta-wayland-activation.c Update license access method 2023-08-30 08:48:23 +02:00
meta-wayland-activation.h cleanup: Switch to pragma once 2023-08-07 22:24:36 +00:00
meta-wayland-actor-surface.c mutter: Completely replace MetaRectangle with MtkRectangle 2023-08-30 16:46:14 +02:00
meta-wayland-actor-surface.h Update license access method 2023-08-30 08:48:23 +02:00
meta-wayland-buffer.c mutter: Replace cairo_rectangle_int_t with MtkRectangle 2023-08-30 16:46:13 +02:00
meta-wayland-buffer.h Update license access method 2023-08-30 08:48:23 +02:00
meta-wayland-client-private.h Update license access method 2023-08-30 08:48:23 +02:00
meta-wayland-client.c Update license access method 2023-08-30 08:48:23 +02:00
meta-wayland-cursor-surface.c mtk: Move Rectangle.to_graphene_rect from Meta 2023-08-30 16:46:14 +02:00
meta-wayland-cursor-surface.h Update license access method 2023-08-30 08:48:23 +02:00
meta-wayland-data-device-primary.c wayland: Setup and use ownership chains 2022-12-17 15:13:48 +01:00
meta-wayland-data-device-primary.h cleanup: Switch to pragma once 2023-08-07 22:24:36 +00:00
meta-wayland-data-device.c Remove unused meta_wayland_data_device_is_dnd_surface 2023-08-12 19:53:46 +00:00
meta-wayland-data-device.h Remove unused meta_wayland_data_device_is_dnd_surface 2023-08-12 19:53:46 +00:00
meta-wayland-data-offer-primary.c cleanup: Make include macro usages consistent 2023-08-07 22:24:36 +00:00
meta-wayland-data-offer-primary.h cleanup: Make include macro usages consistent 2023-08-07 22:24:36 +00:00
meta-wayland-data-offer.c cleanup: Make include macro usages consistent 2023-08-07 22:24:36 +00:00
meta-wayland-data-offer.h cleanup: Switch to pragma once 2023-08-07 22:24:36 +00:00
meta-wayland-data-source-primary.c wayland: Add support for wayland-protocols primary selection protocol 2020-05-13 18:27:46 +02:00
meta-wayland-data-source-primary.h cleanup: Make include macro usages consistent 2023-08-07 22:24:36 +00:00
meta-wayland-data-source.c cleanup: Stop translating nick/blurb for pspecs 2023-07-19 11:33:59 +00:00
meta-wayland-data-source.h cleanup: Switch to pragma once 2023-08-07 22:24:36 +00:00
meta-wayland-dma-buf.c Update license access method 2023-08-30 08:48:23 +02:00
meta-wayland-dma-buf.h Update license access method 2023-08-30 08:48:23 +02:00
meta-wayland-dnd-surface.c Update license access method 2023-08-30 08:48:23 +02:00
meta-wayland-dnd-surface.h Update license access method 2023-08-30 08:48:23 +02:00
meta-wayland-egl-stream.c Update license access method 2023-08-30 08:48:23 +02:00
meta-wayland-egl-stream.h Update license access method 2023-08-30 08:48:23 +02:00
meta-wayland-filter-manager.c Update license access method 2023-08-30 08:48:23 +02:00
meta-wayland-filter-manager.h Update license access method 2023-08-30 08:48:23 +02:00
meta-wayland-fractional-scale.c Update license access method 2023-08-30 08:48:23 +02:00
meta-wayland-fractional-scale.h Update license access method 2023-08-30 08:48:23 +02:00
meta-wayland-gtk-shell.c Update license access method 2023-08-30 08:48:23 +02:00
meta-wayland-gtk-shell.h Update license access method 2023-08-30 08:48:23 +02:00
meta-wayland-idle-inhibit.c wayland/idle-inhibit: Handle immediate inhibitor destruction 2023-09-01 23:17:06 +00:00
meta-wayland-idle-inhibit.h wayland: Implement idle inhibit protocol 2023-08-26 20:19:22 +02:00
meta-wayland-inhibit-shortcuts-dialog.c cleanup: Use g_clear_signal_handler() where possible 2019-11-21 15:02:27 +00:00
meta-wayland-inhibit-shortcuts-dialog.h cleanup: Switch to pragma once 2023-08-07 22:24:36 +00:00
meta-wayland-inhibit-shortcuts.c Update license access method 2023-08-30 08:48:23 +02:00
meta-wayland-inhibit-shortcuts.h Update license access method 2023-08-30 08:48:23 +02:00
meta-wayland-input-device.c Update license access method 2023-08-30 08:48:23 +02:00
meta-wayland-input-device.h Update license access method 2023-08-30 08:48:23 +02:00
meta-wayland-keyboard.c Update license access method 2023-08-30 08:48:23 +02:00
meta-wayland-keyboard.h Update license access method 2023-08-30 08:48:23 +02:00
meta-wayland-legacy-xdg-foreign.c Update license access method 2023-08-30 08:48:23 +02:00
meta-wayland-legacy-xdg-foreign.h Update license access method 2023-08-30 08:48:23 +02:00
meta-wayland-outputs.c mutter: Completely replace MetaRectangle with MtkRectangle 2023-08-30 16:46:14 +02:00
meta-wayland-outputs.h Update license access method 2023-08-30 08:48:23 +02:00
meta-wayland-pointer-constraints.c mutter: Replace cairo_rectangle_int_t with MtkRectangle 2023-08-30 16:46:13 +02:00
meta-wayland-pointer-constraints.h Update license access method 2023-08-30 08:48:23 +02:00
meta-wayland-pointer-gesture-hold.c wayland: Use ClutterEvent getter methods 2023-08-08 04:11:13 +02:00
meta-wayland-pointer-gesture-hold.h cleanup: Switch to pragma once 2023-08-07 22:24:36 +00:00
meta-wayland-pointer-gesture-pinch.c Update license access method 2023-08-30 08:48:23 +02:00
meta-wayland-pointer-gesture-pinch.h cleanup: Switch to pragma once 2023-08-07 22:24:36 +00:00
meta-wayland-pointer-gesture-swipe.c Update license access method 2023-08-30 08:48:23 +02:00
meta-wayland-pointer-gesture-swipe.h cleanup: Switch to pragma once 2023-08-07 22:24:36 +00:00
meta-wayland-pointer-gestures.c Update license access method 2023-08-30 08:48:23 +02:00
meta-wayland-pointer-gestures.h cleanup: Switch to pragma once 2023-08-07 22:24:36 +00:00
meta-wayland-pointer.c wayland: Use ClutterEvent getter methods 2023-08-08 04:11:13 +02:00
meta-wayland-pointer.h cleanup: Switch to pragma once 2023-08-07 22:24:36 +00:00
meta-wayland-popup.c wayland: Drop redundant MetaDisplay grab op 2023-01-30 10:56:29 +00:00
meta-wayland-popup.h cleanup: Switch to pragma once 2023-08-07 22:24:36 +00:00
meta-wayland-presentation-time-private.h Update license access method 2023-08-30 08:48:23 +02:00
meta-wayland-presentation-time.c Update license access method 2023-08-30 08:48:23 +02:00
meta-wayland-private.h Update license access method 2023-08-30 08:48:23 +02:00
meta-wayland-region.c mutter: Replace cairo_rectangle_int_t with MtkRectangle 2023-08-30 16:46:13 +02:00
meta-wayland-region.h Update license access method 2023-08-30 08:48:23 +02:00
meta-wayland-seat.c wayland: Get device directly from clutter in get_grab_info() for touch case 2023-09-03 09:12:29 +00:00
meta-wayland-seat.h Update license access method 2023-08-30 08:48:23 +02:00
meta-wayland-shell-surface.c mutter: Completely replace MetaRectangle with MtkRectangle 2023-08-30 16:46:14 +02:00
meta-wayland-shell-surface.h mutter: Completely replace MetaRectangle with MtkRectangle 2023-08-30 16:46:14 +02:00
meta-wayland-single-pixel-buffer.c Update license access method 2023-08-30 08:48:23 +02:00
meta-wayland-single-pixel-buffer.h Update license access method 2023-08-30 08:48:23 +02:00
meta-wayland-subsurface.c mutter: Completely replace MetaRectangle with MtkRectangle 2023-08-30 16:46:14 +02:00
meta-wayland-subsurface.h mutter: Completely replace MetaRectangle with MtkRectangle 2023-08-30 16:46:14 +02:00
meta-wayland-surface.c mutter: Completely replace MetaRectangle with MtkRectangle 2023-08-30 16:46:14 +02:00
meta-wayland-surface.h mutter: Completely replace MetaRectangle with MtkRectangle 2023-08-30 16:46:14 +02:00
meta-wayland-tablet-cursor-surface.c Update license access method 2023-08-30 08:48:23 +02:00
meta-wayland-tablet-cursor-surface.h Update license access method 2023-08-30 08:48:23 +02:00
meta-wayland-tablet-manager.c Update license access method 2023-08-30 08:48:23 +02:00
meta-wayland-tablet-manager.h cleanup: Switch to pragma once 2023-08-07 22:24:36 +00:00
meta-wayland-tablet-pad-group.c Update license access method 2023-08-30 08:48:23 +02:00
meta-wayland-tablet-pad-group.h Remove unused meta_wayland_tablet_pad_group_lookup_resource 2023-08-12 19:53:46 +00:00
meta-wayland-tablet-pad-ring.c Update license access method 2023-08-30 08:48:23 +02:00
meta-wayland-tablet-pad-ring.h cleanup: Switch to pragma once 2023-08-07 22:24:36 +00:00
meta-wayland-tablet-pad-strip.c Update license access method 2023-08-30 08:48:23 +02:00
meta-wayland-tablet-pad-strip.h cleanup: Switch to pragma once 2023-08-07 22:24:36 +00:00
meta-wayland-tablet-pad.c Update license access method 2023-08-30 08:48:23 +02:00
meta-wayland-tablet-pad.h cleanup: Switch to pragma once 2023-08-07 22:24:36 +00:00
meta-wayland-tablet-seat.c Update license access method 2023-08-30 08:48:23 +02:00
meta-wayland-tablet-seat.h cleanup: Switch to pragma once 2023-08-07 22:24:36 +00:00
meta-wayland-tablet-tool.c Update license access method 2023-08-30 08:48:23 +02:00
meta-wayland-tablet-tool.h cleanup: Switch to pragma once 2023-08-07 22:24:36 +00:00
meta-wayland-tablet.c Update license access method 2023-08-30 08:48:23 +02:00
meta-wayland-tablet.h cleanup: Switch to pragma once 2023-08-07 22:24:36 +00:00
meta-wayland-text-input.c mutter: Replace cairo_rectangle_int_t with MtkRectangle 2023-08-30 16:46:13 +02:00
meta-wayland-text-input.h Update license access method 2023-08-30 08:48:23 +02:00
meta-wayland-touch.c Update license access method 2023-08-30 08:48:23 +02:00
meta-wayland-touch.h cleanup: Switch to pragma once 2023-08-07 22:24:36 +00:00
meta-wayland-transaction.c Update license access method 2023-08-30 08:48:23 +02:00
meta-wayland-transaction.h Update license access method 2023-08-30 08:48:23 +02:00
meta-wayland-types.h Update license access method 2023-08-30 08:48:23 +02:00
meta-wayland-versions.h Update license access method 2023-08-30 08:48:23 +02:00
meta-wayland-viewporter.c Update license access method 2023-08-30 08:48:23 +02:00
meta-wayland-viewporter.h Update license access method 2023-08-30 08:48:23 +02:00
meta-wayland-window-configuration.c mutter: Completely replace MetaRectangle with MtkRectangle 2023-08-30 16:46:14 +02:00
meta-wayland-window-configuration.h mutter: Completely replace MetaRectangle with MtkRectangle 2023-08-30 16:46:14 +02:00
meta-wayland-x11-interop.c Update license access method 2023-08-30 08:48:23 +02:00
meta-wayland-x11-interop.h Update license access method 2023-08-30 08:48:23 +02:00
meta-wayland-xdg-foreign-private.h Update license access method 2023-08-30 08:48:23 +02:00
meta-wayland-xdg-foreign.c Update license access method 2023-08-30 08:48:23 +02:00
meta-wayland-xdg-foreign.h Update license access method 2023-08-30 08:48:23 +02:00
meta-wayland-xdg-shell.c mutter: Completely replace MetaRectangle with MtkRectangle 2023-08-30 16:46:14 +02:00
meta-wayland-xdg-shell.h Update license access method 2023-08-30 08:48:23 +02:00
meta-wayland.c Update license access method 2023-08-30 08:48:23 +02:00
meta-wayland.h Update license access method 2023-08-30 08:48:23 +02:00
meta-window-wayland.c mutter: Completely replace MetaRectangle with MtkRectangle 2023-08-30 16:46:14 +02:00
meta-window-wayland.h mutter: Completely replace MetaRectangle with MtkRectangle 2023-08-30 16:46:14 +02:00
meta-window-xwayland.c mutter: Completely replace MetaRectangle with MtkRectangle 2023-08-30 16:46:14 +02:00
meta-window-xwayland.h cleanup: Switch to pragma once 2023-08-07 22:24:36 +00:00
meta-xwayland-dnd-private.h Update license access method 2023-08-30 08:48:23 +02:00
meta-xwayland-dnd.c wayland: Change MetaWaylandDragDest::motion vmethod signature 2023-08-08 03:58:42 +02:00
meta-xwayland-grab-keyboard.c Update license access method 2023-08-30 08:48:23 +02:00
meta-xwayland-grab-keyboard.h Update license access method 2023-08-30 08:48:23 +02:00
meta-xwayland-private.h Update license access method 2023-08-30 08:48:23 +02:00
meta-xwayland-surface.c mutter: Completely replace MetaRectangle with MtkRectangle 2023-08-30 16:46:14 +02:00
meta-xwayland-surface.h Update license access method 2023-08-30 08:48:23 +02:00
meta-xwayland.c mutter: Completely replace MetaRectangle with MtkRectangle 2023-08-30 16:46:14 +02:00
meta-xwayland.h Update license access method 2023-08-30 08:48:23 +02:00