From: Consolatis <35009135+Consolatis@users.noreply.github.com> Date: Sun, 5 Mar 2023 15:34:41 +0000 (+0100) Subject: src/workspaces.c: update cursor focus X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=037dace5bcbd40d5e2dd25c362992b82ad61728b;p=proto%2Flabwc.git src/workspaces.c: update cursor focus Fixes #807 --- diff --git a/src/workspaces.c b/src/workspaces.c index e3c149de..625a8d8b 100644 --- a/src/workspaces.c +++ b/src/workspaces.c @@ -271,6 +271,12 @@ workspaces_switch_to(struct workspace *target) /* And finally show the OSD */ _osd_show(server); + + /* + * Make sure we are not carrying around a + * cursor image from the previous desktop + */ + cursor_update_focus(server); } void @@ -284,6 +290,9 @@ workspaces_osd_hide(struct seat *seat) wlr_scene_buffer_set_buffer(output->workspace_osd, NULL); } seat->workspace_osd_shown_by_modifier = false; + + /* Update the cursor focus in case it was on top of the OSD before */ + cursor_update_focus(server); } struct workspace *