rootston: only allow one drag icon per seat

This commit is contained in:
emersion 2019-01-30 14:07:59 +01:00
parent d6de329d98
commit faa00a4a33
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
4 changed files with 15 additions and 16 deletions

View file

@ -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);
}
}