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
|
|
@ -45,6 +45,7 @@ struct window_switcher_field {
|
|||
struct buf;
|
||||
struct view;
|
||||
struct server;
|
||||
struct wlr_scene_node;
|
||||
|
||||
/* Begin window switcher */
|
||||
void osd_begin(struct server *server, enum lab_cycle_dir direction);
|
||||
|
|
@ -58,6 +59,9 @@ void osd_finish(struct server *server, bool switch_focus);
|
|||
/* Notify OSD about a destroying view */
|
||||
void osd_on_view_destroy(struct view *view);
|
||||
|
||||
/* Focus the clicked window and close OSD */
|
||||
void osd_on_cursor_release(struct server *server, struct wlr_scene_node *node);
|
||||
|
||||
/* Used by osd.c internally to render window switcher fields */
|
||||
void osd_field_get_content(struct window_switcher_field *field,
|
||||
struct buf *buf, struct view *view);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue