mutter/src
Robert Mader 33b834c433 wayland/data-offer: Accept final preferrence of drop destination
Quoting the spec for `wl_data_device::drop`:
> If the resulting action is "ask", the action will not be considered
> final. The drag-and-drop destination is expected to perform one last
> wl_data_offer.set_actions request, or wl_data_offer.destroy in order
> to cancel the operation.

We did not respect the action choosen by the drop destination when
it called `wl_data_offer::set_actions` after `wl_data_device::drop`
if a user override was still active. This eventually resulted in
a protocol error in `wl_data_offer::finish`, as the current action
could still be `ask`.

Fix this by only allowing a user override to `ask` before `drop` is
called, thus making sure the final `set_actions` preference is
honored.

Closes https://gitlab.gnome.org/GNOME/mutter/-/issues/1952

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2043>
2021-10-14 21:08:42 +00:00
..
backends keymap-x11: Don't update key types when adding key to keymap 2021-10-06 14:16:39 +00:00
compositor shaped-texture: Remove mask texture handling from get_image() 2021-09-22 13:07:44 +00:00
core window: Don't change workspaces of unmanaged windows 2021-09-29 09:34:30 +00:00
meta window-actor: Add paint_to_content() function 2021-09-04 09:17:44 +00:00
tests tests/dbus-runner: Make sure to tear-down even on test failure 2021-09-22 12:37:23 +00:00
ui main: Move rect related macro to util-private.h 2021-05-17 16:08:42 +00:00
wayland wayland/data-offer: Accept final preferrence of drop destination 2021-10-14 21:08:42 +00:00
x11 x11: Initialize g_autofree with NULL 2021-09-04 20:00:23 +00:00
libmutter.pc.in build: Fix libs and cflags in autotools .pc file 2018-11-10 16:20:46 +00:00
meson.build meson: Add optional libsystemd dependency 2021-09-02 21:54:30 +00:00
meta-private-enum-types.c.in core: Drop "volatile" from static GTypes in manual registration 2021-03-22 10:47:51 +00:00
meta-private-enum-types.h.in screen-cast: Add screen cast flag to streams 2020-07-30 09:51:16 +02:00
org.freedesktop.login1.xml MetaLauncher: Don't g_error() on failure 2015-11-06 17:03:59 -05:00
org.gnome.Mutter.DisplayConfig.xml x11: Support the CTM (color transform matrix) RandR property 2021-01-11 13:44:54 +00:00
org.gnome.Mutter.IdleMonitor.xml idle-monitor: Add ResetIdletime API, for testing purposes 2018-04-16 13:28:03 +02:00
org.gnome.Mutter.RemoteDesktop.xml remote-desktop/session: Add CapsLockState and NumLockState properties 2021-03-04 17:39:08 +00:00
org.gnome.Mutter.ScreenCast.xml screen-cast/session: Introduce RecordVirtual D-Bus API 2021-03-12 15:09:45 +00:00