src/output.c: support theme.window_inactive_title_bg_color

This commit is contained in:
Johan Malm 2020-06-15 21:44:57 +01:00
parent c7a179f5b3
commit 5bd55570ba
3 changed files with 14 additions and 1 deletions

View file

@ -123,6 +123,14 @@ static void set_activated(struct wlr_surface *surface, bool activated)
}
}
bool view_hasfocus(struct view *view)
{
if (!view || !view->surface)
return false;
struct wlr_seat *seat = view->server->seat;
return (view->surface == seat->keyboard_state.focused_surface);
}
void view_focus(struct view *view)
{
/* Note: this function only deals with keyboard focus. */