diff options
author | Leonardo Hernández Hernández <leohdz172@proton.me> | 2023-07-23 20:59:29 -0600 |
---|---|---|
committer | Leonardo Hernández <leohdz172@proton.me> | 2023-07-31 18:19:41 -0600 |
commit | 78cf88670f3410782f5c90895c3c4586d3485a67 (patch) | |
tree | a38586d28ae440eb5118612a88087f7d9d303ee5 /client.h | |
parent | ce997c4a21e96716982f491718eef08f95425ab4 (diff) |
add support for xdg-shell v6
Diffstat (limited to 'client.h')
-rw-r--r-- | client.h | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -346,6 +346,17 @@ client_set_tiled(Client *c, uint32_t edges) wlr_xdg_toplevel_set_tiled(c->surface.xdg->toplevel, edges); } +static inline void +client_set_suspended(Client *c, int suspended) +{ +#ifdef XWAYLAND + if (client_is_x11(c)) + return; +#endif + + wlr_xdg_toplevel_set_suspended(c->surface.xdg->toplevel, suspended); +} + static inline struct wlr_surface * client_surface_at(Client *c, double cx, double cy, double *sx, double *sy) { |