birdwl

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 554754c9a2c03a263ac7d14092d6f67f3a211cdd
parent 0caa6582765492cff5a6470626137adaebaa575e
Author: Leonardo Hernández Hernández <leohdz172@proton.me>
Date:   Wed, 14 Aug 2024 13:37:14 -0600

chase xdg_surface geometry changes (wlroots!4788)

References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4788

Diffstat:
Mclient.h | 8+++-----
1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/client.h b/client.h @@ -134,7 +134,6 @@ client_get_appid(Client *c) static inline void client_get_clip(Client *c, struct wlr_box *clip) { - struct wlr_box xdg_geom = {0}; *clip = (struct wlr_box){ .x = 0, .y = 0, @@ -147,9 +146,8 @@ client_get_clip(Client *c, struct wlr_box *clip) return; #endif - wlr_xdg_surface_get_geometry(c->surface.xdg, &xdg_geom); - clip->x = xdg_geom.x; - clip->y = xdg_geom.y; + clip->x = c->surface.xdg->geometry.x; + clip->y = c->surface.xdg->geometry.y; } static inline void @@ -164,7 +162,7 @@ client_get_geometry(Client *c, struct wlr_box *geom) return; } #endif - wlr_xdg_surface_get_geometry(c->surface.xdg, geom); + *geom = c->surface.xdg->geometry; } static inline Client *