seat: Listen for destroy signal of pressed.surface

This commit is contained in:
John Lindgren 2022-09-13 10:55:59 -04:00
parent c8ddb0143c
commit b8c3fdaef9
6 changed files with 35 additions and 17 deletions

View file

@ -101,9 +101,6 @@ unmanaged_handle_unmap(struct wl_listener *listener, void *data)
* Mark the node as gone so a racing configure event
* won't try to reposition the node while unmapped.
*/
if (unmanaged->node && seat->pressed.node == unmanaged->node) {
seat_reset_pressed(seat);
}
unmanaged->node = NULL;
cursor_update_focus(unmanaged->server);