mirror of
https://github.com/labwc/labwc.git
synced 2025-11-02 09:01:47 -05:00
src/output.c: support theme.window_inactive_title_bg_color
This commit is contained in:
parent
c7a179f5b3
commit
5bd55570ba
3 changed files with 14 additions and 1 deletions
|
|
@ -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. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue