diff options
-rw-r--r-- | types/wlr_output.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/types/wlr_output.c b/types/wlr_output.c index 22d9c588..ec29da4f 100644 --- a/types/wlr_output.c +++ b/types/wlr_output.c @@ -791,6 +791,9 @@ static void output_cursor_reset(struct wlr_output_cursor *cursor) { if (cursor->surface != NULL) { wl_list_remove(&cursor->surface_commit.link); wl_list_remove(&cursor->surface_destroy.link); + if (cursor->visible) { + wlr_surface_send_leave(cursor->surface, cursor->output); + } cursor->surface = NULL; } } |