aboutsummaryrefslogtreecommitdiff
path: root/client.h
diff options
context:
space:
mode:
authorLeonardo Hernández Hernández <leohdz172@protonmail.com>2022-06-09 12:45:42 -0500
committerLeonardo Hernández Hernández <leohdz172@protonmail.com>2022-06-09 12:45:42 -0500
commita32db11f16fae3f57af3795d2463996b95e7ba1c (patch)
tree9029cfca6dd1a6885be1d68749bd32186f468fab /client.h
parent948fdcf709e86f380eef26ee529683d2c396e58a (diff)
set client bounds at resize
Diffstat (limited to 'client.h')
-rw-r--r--client.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/client.h b/client.h
index 6648c59..9431d11 100644
--- a/client.h
+++ b/client.h
@@ -45,6 +45,16 @@ client_activate_surface(struct wlr_surface *s, int activated)
wlr_xdg_toplevel_set_activated(surface->toplevel, activated);
}
+static inline uint32_t
+client_set_bounds(Client *c, int32_t width, int32_t height)
+{
+#ifdef XWAYLAND
+ if (client_is_x11(c))
+ return 0;
+#endif
+ return wlr_xdg_toplevel_set_bounds(c->surface.xdg->toplevel, width, height);
+}
+
static inline void
client_for_each_surface(Client *c, wlr_surface_iterator_func_t fn, void *data)
{