set client bounds at resize

This commit is contained in:
Leonardo Hernández Hernández 2022-06-09 12:45:42 -05:00
parent 948fdcf709
commit a32db11f16
No known key found for this signature in database
GPG key ID: E538897EE11B9624
2 changed files with 11 additions and 0 deletions

View file

@ -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)
{