mirror of
https://github.com/labwc/labwc.git
synced 2025-10-29 05:40:24 -04:00
view.c: enable deco on xdg-shell views
This commit is contained in:
parent
c07acc9ee6
commit
bcdd553477
2 changed files with 5 additions and 3 deletions
|
|
@ -59,10 +59,12 @@ static bool is_toplevel(struct view *view)
|
|||
|
||||
bool view_want_deco(struct view *view)
|
||||
{
|
||||
if (view->type != LAB_XWAYLAND_VIEW)
|
||||
return false;
|
||||
if (!is_toplevel(view))
|
||||
return false;
|
||||
if (view->type == LAB_XDG_SHELL_VIEW && !LAB_DISABLE_CSD)
|
||||
return false;
|
||||
if (view->type == LAB_XDG_SHELL_VIEW)
|
||||
return true;
|
||||
if (view->xwayland_surface->override_redirect)
|
||||
return false;
|
||||
if (view->xwayland_surface->decorations !=
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue