diff options
author | emersion <contact@emersion.fr> | 2019-01-30 14:07:59 +0100 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2019-01-30 15:24:18 +0100 |
commit | faa00a4a3362a8d7ea3942be50f95eb693fddb2e (patch) | |
tree | 6b1db8aaf64e6a0bfd4f94d58585a8ab2e807d94 /rootston/cursor.c | |
parent | d6de329d981f232ad47657d389a76b0da3cd217f (diff) |
rootston: only allow one drag icon per seat
Diffstat (limited to 'rootston/cursor.c')
-rw-r--r-- | rootston/cursor.c | 5 |
1 files changed, 2 insertions, 3 deletions
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); } } |