mirror of
https://github.com/labwc/labwc.git
synced 2025-11-03 09:01:51 -05:00
view.c: tweak view_want_deco()
This commit is contained in:
parent
2297e43cc0
commit
44df6c896d
1 changed files with 9 additions and 2 deletions
11
src/view.c
11
src/view.c
|
|
@ -86,10 +86,17 @@ void view_resize(struct view *view, struct wlr_box geo)
|
||||||
/* Do we want _server_ side decoration? */
|
/* Do we want _server_ side decoration? */
|
||||||
bool view_want_deco(struct view *view)
|
bool view_want_deco(struct view *view)
|
||||||
{
|
{
|
||||||
if (!is_toplevel(view))
|
|
||||||
return false;
|
|
||||||
if (view->type == LAB_XDG_SHELL_VIEW && rc.client_side_decorations)
|
if (view->type == LAB_XDG_SHELL_VIEW && rc.client_side_decorations)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Some XDG shells refuse to give us their CSD in which case their
|
||||||
|
* geometry.{x,y} seems to be greater than zero, so filter on that.
|
||||||
|
*/
|
||||||
|
if (view->type == LAB_XDG_SHELL_VIEW && !rc.client_side_decorations &&
|
||||||
|
view->xdg_surface->geometry.x)
|
||||||
|
return false;
|
||||||
|
|
||||||
if (view->type == LAB_XDG_SHELL_VIEW)
|
if (view->type == LAB_XDG_SHELL_VIEW)
|
||||||
return true;
|
return true;
|
||||||
if (view->xwayland_surface->override_redirect)
|
if (view->xwayland_surface->override_redirect)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue