diff options
author | Leonardo Hernández Hernández <leohdz172@protonmail.com> | 2022-06-16 15:54:13 -0500 |
---|---|---|
committer | Leonardo Hernández Hernández <leohdz172@protonmail.com> | 2022-06-16 15:54:13 -0500 |
commit | 4ae6d0f3873451306e1ef04d88e0fab4e2b04548 (patch) | |
tree | debbc73ce837dfdfe8200f5893ea0520992f8ab2 /client.h | |
parent | 2ef5abfb728bbf157641becfe0db4d6e3d57bca8 (diff) |
move ugglyness to client.h
Diffstat (limited to 'client.h')
-rw-r--r-- | client.h | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -231,6 +231,17 @@ client_min_size(Client *c, int *width, int *height) *height = state->min_height; } +static inline void +client_restack_surface(Client *c) +{ +#ifdef XWAYLAND + if (client_is_x11(c)) + wlr_xwayland_surface_restack(c->surface.xwayland, NULL, + XCB_STACK_MODE_ABOVE); +#endif + return; +} + static inline Client * client_from_wlr_surface(struct wlr_surface *s) { |