diff options
author | Leonardo Hernández Hernández <leohdz172@protonmail.com> | 2022-03-16 21:49:47 -0600 |
---|---|---|
committer | Leonardo Hernández Hernández <leohdz172@protonmail.com> | 2022-03-16 21:54:16 -0600 |
commit | 79f85bde99e469cea01a0b44b235b53cab55aee3 (patch) | |
tree | 1826cbec5e14727bee5a5d08aa418f2b0f3a1505 /client.h | |
parent | 863eedd05e8d292ccef2530d9b4b8b5475b8cbef (diff) | |
parent | 2768af5a9bfd7cb5f874a8d61f4bc9a1188b82fd (diff) |
Merge branch 'main' into scenegraph
Diffstat (limited to 'client.h')
-rw-r--r-- | client.h | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -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 * |