mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-31 22:25:21 -04:00
bugfix: dnd force cancel
This commit is contained in:
parent
e903a69698
commit
1a756b3123
6 changed files with 40 additions and 15 deletions
|
|
@ -152,6 +152,9 @@ static void output_frame_notify(struct wl_listener *listener, void *data) {
|
|||
|
||||
struct roots_drag_icon *drag_icon = NULL;
|
||||
wl_list_for_each(drag_icon, &server->input->drag_icons, link) {
|
||||
if (!drag_icon->mapped) {
|
||||
continue;
|
||||
}
|
||||
struct wlr_surface *icon = drag_icon->surface;
|
||||
struct wlr_cursor *cursor = server->input->cursor;
|
||||
double icon_x = cursor->x + drag_icon->sx;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue