wlroots/xwayland
Consolatis 0c437f6e98 xwayland: fix xdg->xwayland drag-and-drop
As struct wlr_drag is destroyed on drop and in the process resets
the focus, a xwayland dnd listener would also reset xwm->drag_focus.

This prevents the xcb replies from being processed and also prevents
the transfer if a compositor would not additionally request new focus
in its wlr_drag destroy handler (which is something usually only done
when in a focus-follows-mouse setting).

This patch creates a new xwm->drop_focus pointer which is a copy of
xwm->drag_focus at drop time. The xcb reply handler and transfer
logic now use the new xwm->drop_focus for their authorization checks.

(cherry picked from commit 546c5d000d)
2024-12-11 09:29:55 -05:00
..
selection xwayland: fix xdg->xwayland drag-and-drop 2024-12-11 09:29:55 -05:00
meson.build xwayland: enable use of a xserver subproject 2023-05-04 18:02:32 +00:00
server.c Define _POSIX_C_SOURCE globally 2024-02-15 15:41:12 +01:00
shell.c xwayland: fix double free wlr_xwayland_shell_v1 2023-10-06 10:04:11 +02:00
sockets.c Define _POSIX_C_SOURCE globally 2024-02-15 15:41:12 +01:00
sockets.h Add some missing includes/declarations 2023-06-05 21:06:19 +00:00
xwayland.c Fix memory leak in xwayland.c 2024-08-12 10:08:27 -04:00
xwm.c xwayland: fix xdg->xwayland drag-and-drop 2024-12-11 09:29:55 -05:00