mirror of
https://github.com/labwc/labwc.git
synced 2026-02-20 01:40:22 -05:00
view: add view_is_related()
Allows removing xwayland-specific stuff from seat.c. Based on a suggestion from @Consolatis. v2: add comments
This commit is contained in:
parent
9b0031aec4
commit
5c4038493f
4 changed files with 38 additions and 21 deletions
11
src/view.c
11
src/view.c
|
|
@ -1285,6 +1285,17 @@ view_append_children(struct view *view, struct wl_array *children)
|
|||
}
|
||||
}
|
||||
|
||||
bool
|
||||
view_is_related(struct view *view, struct wlr_surface *surface)
|
||||
{
|
||||
assert(view);
|
||||
assert(surface);
|
||||
if (view->impl->is_related) {
|
||||
return view->impl->is_related(view, surface);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
const char *
|
||||
view_get_string_prop(struct view *view, const char *prop)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue