aboutsummaryrefslogtreecommitdiff
path: root/rootston
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2019-02-16 11:56:44 +0100
committeremersion <contact@emersion.fr>2019-02-20 18:42:34 +0100
commitae2aeb65cc8cf16944b02d1f8ed6ea6fc15de6ec (patch)
treec1f9ecef7367ae6df1f259b5b00159b7c918f1a1 /rootston
parent44ec3afb2789fad7c6d8aa762b8686e1275a5980 (diff)
rootston: cancel drag on invalid serial
Diffstat (limited to 'rootston')
-rw-r--r--rootston/seat.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/rootston/seat.c b/rootston/seat.c
index 428787ef..f88e4efb 100644
--- a/rootston/seat.c
+++ b/rootston/seat.c
@@ -624,6 +624,7 @@ static void roots_seat_handle_request_start_drag(struct wl_listener *listener,
wlr_log(WLR_DEBUG, "Ignoring start_drag request: "
"could not validate pointer or touch serial %" PRIu32, event->serial);
+ wlr_data_source_destroy(event->drag->source);
}
static void roots_seat_handle_start_drag(struct wl_listener *listener,