diff options
author | Devin J. Pohly <djpohly@gmail.com> | 2021-05-24 21:56:05 -0500 |
---|---|---|
committer | Devin J. Pohly <djpohly@gmail.com> | 2021-05-24 21:56:05 -0500 |
commit | 5dfd7cf180ce2a8e9333bb385cd17484675f8467 (patch) | |
tree | c1987618369f37a067797d997930a681ab077ee8 /client.h | |
parent | 77e75cf5549147946da2a5ebfbc63eecf8f82078 (diff) | |
parent | 06ca86009296c1b8753cba259fd797703a281bbd (diff) |
Merge branch 'main' into wlroots-next
Diffstat (limited to 'client.h')
-rw-r--r-- | client.h | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -141,6 +141,17 @@ client_set_size(Client *c, uint32_t width, uint32_t height) return wlr_xdg_toplevel_set_size(c->surface.xdg, width, height); } +static inline void +client_set_tiled(Client *c, uint32_t edges) +{ +#ifdef XWAYLAND + 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); +} + static inline struct wlr_surface * client_surface(Client *c) { |