Privatize view_contains_window_type()

This commit is contained in:
Johan Malm 2025-09-26 19:17:27 +01:00 committed by Johan Malm
parent 2ea0f6fff4
commit eb41c6a3b0
2 changed files with 10 additions and 11 deletions

View file

@ -120,6 +120,16 @@ query_str_match(const char *condition, const char *value)
return value && match_glob(condition, value);
}
static bool
view_contains_window_type(struct view *view, enum lab_window_type window_type)
{
assert(view);
if (view->impl->contains_window_type) {
return view->impl->contains_window_type(view, window_type);
}
return false;
}
bool
view_matches_query(struct view *view, struct view_query *query)
{
@ -403,16 +413,6 @@ view_wants_focus(struct view *view)
return VIEW_WANTS_FOCUS_ALWAYS;
}
bool
view_contains_window_type(struct view *view, enum lab_window_type window_type)
{
assert(view);
if (view->impl->contains_window_type) {
return view->impl->contains_window_type(view, window_type);
}
return false;
}
bool
view_is_focusable(struct view *view)
{