~ruther/dwl

554754c9a2c03a263ac7d14092d6f67f3a211cdd — Leonardo Hernández Hernández 1 year, 1 month ago 0caa658
chase xdg_surface geometry changes (wlroots!4788)

References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4788
1 files changed, 3 insertions(+), 5 deletions(-)

M client.h
M client.h => client.h +3 -5
@@ 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 *