osd: move end_cycling() into osd_finish()

...so that we can use `osd_finish()` to support clicking an osd item to
focus its associated window.
This commit is contained in:
tokyo4j 2025-10-30 03:06:15 +09:00 committed by Johan Malm
parent 7223056ffc
commit 2c0552004a
3 changed files with 31 additions and 36 deletions

View file

@ -53,7 +53,7 @@ void osd_begin(struct server *server, enum lab_cycle_dir direction);
void osd_cycle(struct server *server, enum lab_cycle_dir direction);
/* Closes the OSD */
void osd_finish(struct server *server);
void osd_finish(struct server *server, bool switch_focus);
/* Notify OSD about a destroying view */
void osd_on_view_destroy(struct view *view);