mirror of
https://github.com/labwc/labwc.git
synced 2025-10-29 05:40:24 -04:00
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:
parent
4f0b72c341
commit
ab74d726c6
1 changed files with 6 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue