cursor: Prevent resetting cursor icon during Move or Resize

Reported-by: @Flrian
This commit is contained in:
Consolatis 2022-09-10 19:19:02 +02:00 committed by Johan Malm
parent c0f0e0c46e
commit 7af74c88a8
2 changed files with 26 additions and 3 deletions

View file

@ -134,5 +134,14 @@ interactive_end(struct view *view)
view_snap_to_edge(view, "down");
}
}
/*
* First set the cursor image in case we moved / resized via SSD.
* Then allow an application to set its own image in case there
* is a surface below the cursor (e.g. moved / resized via 'Alt'
* modifier). If there is no surface below the cursor the second
* call is a no-op.
*/
cursor_set(&view->server->seat, XCURSOR_DEFAULT);
cursor_update_focus(view->server, true);
}
}