Cycle Near Region, rework to fit better

This commit is contained in:
Droc 2024-06-05 10:15:51 -05:00
parent 1cd9940307
commit 206a72edf8
4 changed files with 70 additions and 0 deletions

View file

@ -454,6 +454,14 @@ enum lab_cycle_dir {
struct view *desktop_cycle_view(struct server *server, struct view *start_view,
enum lab_cycle_dir dir);
/**
* desktop_cycle_view_near_region - return view to 'cycle' to within region
* @active_view: reference point for finding next view to cycle to
* Note: If !active_view, the top-most focusable view is returned
*/
struct view *desktop_cycle_view_near_region(struct server *server,
struct view *active_view, struct region *region);
/**
* desktop_focus_topmost_view() - focus the topmost view on the current
* workspace, skipping views that claim not to want focus (those can