mirror of
https://github.com/labwc/labwc.git
synced 2025-10-29 05:40:24 -04:00
Privatize view_contains_window_type()
This commit is contained in:
parent
2ea0f6fff4
commit
eb41c6a3b0
2 changed files with 10 additions and 11 deletions
|
|
@ -425,7 +425,6 @@ void view_array_append(struct server *server, struct wl_array *views,
|
|||
enum lab_view_criteria criteria);
|
||||
|
||||
enum view_wants_focus view_wants_focus(struct view *view);
|
||||
bool view_contains_window_type(struct view *view, enum lab_window_type window_type);
|
||||
|
||||
/* If view is NULL, the size of SSD is not considered */
|
||||
struct wlr_box view_get_edge_snap_box(struct view *view, struct output *output,
|
||||
|
|
|
|||
20
src/view.c
20
src/view.c
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue