From faa00a4a3362a8d7ea3942be50f95eb693fddb2e Mon Sep 17 00:00:00 2001 From: emersion Date: Wed, 30 Jan 2019 14:07:59 +0100 Subject: rootston: only allow one drag icon per seat --- rootston/cursor.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'rootston/cursor.c') diff --git a/rootston/cursor.c b/rootston/cursor.c index 838f5d78..6e09c06e 100644 --- a/rootston/cursor.c +++ b/rootston/cursor.c @@ -151,9 +151,8 @@ static void roots_passthrough_cursor(struct roots_cursor *cursor, wlr_seat_pointer_clear_focus(seat->seat); } - struct roots_drag_icon *drag_icon; - wl_list_for_each(drag_icon, &seat->drag_icons, link) { - roots_drag_icon_update_position(drag_icon); + if (seat->drag_icon != NULL) { + roots_drag_icon_update_position(seat->drag_icon); } } -- cgit v1.2.3