Rebase cursor when a layer surface maps

Also removes an extraneous arrange_outputs call, it's already called if
necessary in arrange_layers.

Updates https://github.com/swaywm/sway/issues/3080
This commit is contained in:
emersion 2019-02-12 22:55:23 +01:00
parent fb4f29289f
commit 97c89b24b8
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
4 changed files with 20 additions and 10 deletions

View file

@ -72,6 +72,7 @@ struct sway_cursor *sway_cursor_create(struct sway_seat *seat);
* This chooses a cursor icon and sends a motion event to the surface.
*/
void cursor_rebase(struct sway_cursor *cursor);
void cursor_rebase_all(void);
void cursor_handle_activity(struct sway_cursor *cursor);
void cursor_unhide(struct sway_cursor *cursor);