define focused_view function and use it for keyboard actions

This commit is contained in:
bi4k8 2021-09-19 22:20:54 +00:00 committed by Johan Malm
parent a15a56bfe1
commit 815cd4aa46
3 changed files with 26 additions and 6 deletions

View file

@ -338,6 +338,7 @@ void desktop_focus_view(struct seat *seat, struct view *view);
*/
struct view *desktop_cycle_view(struct server *server, struct view *current);
struct view *topmost_mapped_view(struct server *server);
struct view *focused_view(struct server *server);
void desktop_focus_topmost_mapped_view(struct server *server);
bool isfocusable(struct view *view);