aboutsummaryrefslogtreecommitdiff
path: root/xwayland
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2019-02-06 14:39:55 +0100
committerGitHub <noreply@github.com>2019-02-06 14:39:55 +0100
commit20d404a091fa92f56be4825bbaf89e4027fda154 (patch)
tree32f7e8b588556d27eecce2862ebfb8d0ea9d5933 /xwayland
parent8cf7aa3bbec47a03687fb2b5d2ef406c10c11ec5 (diff)
parent556bf3ac31be8714d9b9cb92f000a161f5132d8c (diff)
Merge pull request #1529 from emersion/better-dnd-fix
data-device: destroy previous source when starting drag
Diffstat (limited to 'xwayland')
-rw-r--r--xwayland/selection/dnd.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/xwayland/selection/dnd.c b/xwayland/selection/dnd.c
index fc090936..ec5f16c7 100644
--- a/xwayland/selection/dnd.c
+++ b/xwayland/selection/dnd.c
@@ -315,8 +315,6 @@ static void seat_handle_drag_source_destroy(struct wl_listener *listener,
wl_container_of(listener, xwm, seat_drag_source_destroy);
wl_list_remove(&xwm->seat_drag_source_destroy.link);
- xwm->seat_drag_source_destroy.link.prev = NULL;
- xwm->seat_drag_source_destroy.link.next = NULL;
xwm->drag_focus = NULL;
}
@@ -334,9 +332,6 @@ void xwm_seat_handle_start_drag(struct wlr_xwm *xwm, struct wlr_drag *drag) {
wl_signal_add(&drag->events.destroy, &xwm->seat_drag_destroy);
xwm->seat_drag_destroy.notify = seat_handle_drag_destroy;
- if (xwm->seat_drag_source_destroy.link.prev != NULL) {
- wl_list_remove(&xwm->seat_drag_source_destroy.link);
- }
wl_signal_add(&drag->source->events.destroy,
&xwm->seat_drag_source_destroy);
xwm->seat_drag_source_destroy.notify = seat_handle_drag_source_destroy;