cursor: Fix out-of-surface movement for unmanaged surfaces

This commit is contained in:
John Lindgren 2022-09-01 17:50:28 -04:00 committed by Consolatis
parent f7b1bc1de8
commit 7c6c018f43
6 changed files with 57 additions and 36 deletions

View file

@ -813,8 +813,7 @@ view_destroy(struct view *view)
if (server->seat.pressed.view == view) {
/* Mouse was pressed on surface and is still pressed */
server->seat.pressed.view = NULL;
server->seat.pressed.surface = NULL;
seat_reset_pressed(&server->seat);
}
if (server->focused_view == view) {