mirror of
https://github.com/cage-kiosk/cage.git
synced 2025-10-29 05:40:19 -04:00
xwayland: abstract override-redirect behind function
This commit is contained in:
parent
16ab37b706
commit
c47eb031c6
3 changed files with 10 additions and 2 deletions
|
|
@ -23,6 +23,14 @@ xwayland_view_from_view(struct cg_view *view)
|
|||
return (struct cg_xwayland_view *) view;
|
||||
}
|
||||
|
||||
bool
|
||||
xwayland_view_should_manage(struct cg_view *view)
|
||||
{
|
||||
struct cg_xwayland_view *xwayland_view = xwayland_view_from_view(view);
|
||||
struct wlr_xwayland_surface *xwayland_surface = xwayland_view->xwayland_surface;
|
||||
return !xwayland_surface->override_redirect;
|
||||
}
|
||||
|
||||
static char *
|
||||
get_title(struct cg_view *view)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue