mirror of
https://github.com/labwc/labwc.git
synced 2025-11-01 22:58:47 -04:00
view: remove view_hasfocus()
This commit is contained in:
parent
c90923a20c
commit
35015e57c6
2 changed files with 2 additions and 10 deletions
|
|
@ -84,11 +84,3 @@ void view_unminimize(struct view *view)
|
|||
view->minimized = false;
|
||||
view->impl->map(view);
|
||||
}
|
||||
|
||||
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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue