mirror of
https://github.com/labwc/labwc.git
synced 2025-11-30 06:59:52 -05:00
osd: allow clicking an osd item to focus the window
This commit is contained in:
parent
00f0a46ef7
commit
9197eb468a
9 changed files with 55 additions and 1 deletions
|
|
@ -144,6 +144,16 @@ osd_on_view_destroy(struct view *view)
|
|||
}
|
||||
}
|
||||
|
||||
void
|
||||
osd_on_cursor_release(struct server *server, struct wlr_scene_node *node)
|
||||
{
|
||||
assert(server->input_mode == LAB_INPUT_STATE_WINDOW_SWITCHER);
|
||||
|
||||
struct osd_item *item = node_osd_item_from_node(node);
|
||||
server->osd_state.cycle_view = item->view;
|
||||
osd_finish(server, /*switch_focus*/ true);
|
||||
}
|
||||
|
||||
static void
|
||||
restore_preview_node(struct server *server)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue