summaryrefslogtreecommitdiff
path: root/client.h
diff options
context:
space:
mode:
authorLeonardo Hernández Hernández <leohdz172@protonmail.com>2022-03-16 21:49:47 -0600
committerLeonardo Hernández Hernández <leohdz172@protonmail.com>2022-03-16 21:54:16 -0600
commit79f85bde99e469cea01a0b44b235b53cab55aee3 (patch)
tree1826cbec5e14727bee5a5d08aa418f2b0f3a1505 /client.h
parent863eedd05e8d292ccef2530d9b4b8b5475b8cbef (diff)
parent2768af5a9bfd7cb5f874a8d61f4bc9a1188b82fd (diff)
Merge branch 'main' into scenegraph
Diffstat (limited to 'client.h')
-rw-r--r--client.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/client.h b/client.h
index 4fd1863..191dcc5 100644
--- a/client.h
+++ b/client.h
@@ -104,6 +104,16 @@ client_is_float_type(Client *c)
}
static inline int
+client_wants_fullscreen(Client *c)
+{
+#ifdef XWAYLAND
+ if (client_is_x11(c))
+ return c->surface.xwayland->fullscreen;
+#endif
+ return c->surface.xdg->toplevel->requested.fullscreen;
+}
+
+static inline int
client_is_unmanaged(Client *c)
{
#ifdef XWAYLAND
@@ -156,8 +166,7 @@ client_set_tiled(Client *c, uint32_t edges)
if (client_is_x11(c))
return;
#endif
- wlr_xdg_toplevel_set_tiled(c->surface.xdg, WLR_EDGE_TOP |
- WLR_EDGE_BOTTOM | WLR_EDGE_LEFT | WLR_EDGE_RIGHT);
+ wlr_xdg_toplevel_set_tiled(c->surface.xdg, edges);
}
static inline struct wlr_surface *