mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-04-05 07:16:12 -04:00
xwayland: start drag on dnd selection notify
This commit is contained in:
parent
7d18812735
commit
0207105291
8 changed files with 170 additions and 83 deletions
|
|
@ -289,6 +289,11 @@ static void seat_handle_start_drag(struct wl_listener *listener, void *data) {
|
|||
struct wlr_xwm *xwm = wl_container_of(listener, xwm, seat_start_drag);
|
||||
struct wlr_drag *drag = data;
|
||||
|
||||
if (drag && (drag->source == NULL ||
|
||||
!data_source_is_xwayland(drag->source))) {
|
||||
return;
|
||||
}
|
||||
|
||||
xwm_selection_set_owner(&xwm->dnd_selection, drag != NULL);
|
||||
xwm_seat_handle_start_drag(xwm, drag);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue