osd: bookend with calls to cursor_update_focus

this updates the cursor if it is within the OSD area when OSD appears
or disappears
This commit is contained in:
bi4k8 2022-12-12 00:56:55 +00:00 committed by Consolatis
parent 4f0b72c341
commit ab74d726c6

View file

@ -174,6 +174,9 @@ osd_finish(struct server *server)
wlr_scene_node_destroy(&server->osd_state.preview_outline->tree->node);
server->osd_state.preview_outline = NULL;
}
/* Hiding OSD may need a cursor change */
cursor_update_focus(server);
}
void
@ -371,6 +374,9 @@ display_osd(struct output *output)
- h / 2 + output_box.y;
wlr_scene_node_set_position(&scene_buffer->node, lx, ly);
wlr_scene_node_set_enabled(&output->osd_tree->node, true);
/* Update cursor, in case it is within the area covered by OSD */
cursor_update_focus(server);
}
void