view: remove view_hasfocus()

This commit is contained in:
Johan Malm 2020-09-14 17:42:39 +01:00
parent c90923a20c
commit 35015e57c6
2 changed files with 2 additions and 10 deletions

View file

@ -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);
}