From c43f1fbf1c0f9ec607854ab912324ce150c43f7b Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Thu, 30 Sep 2021 21:03:09 +0200 Subject: Chase wlr_xdg_surface breaking changes See [1]. [1]: https://github.com/swaywm/wlroots/pull/3106 --- sway/desktop/layer_shell.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sway/desktop/layer_shell.c') diff --git a/sway/desktop/layer_shell.c b/sway/desktop/layer_shell.c index 7b249be3..7f5a337b 100644 --- a/sway/desktop/layer_shell.c +++ b/sway/desktop/layer_shell.c @@ -483,8 +483,8 @@ static struct sway_layer_surface *popup_get_layer( static void popup_damage(struct sway_layer_popup *layer_popup, bool whole) { struct wlr_xdg_popup *popup = layer_popup->wlr_popup; struct wlr_surface *surface = popup->base->surface; - int popup_sx = popup->geometry.x - popup->base->geometry.x; - int popup_sy = popup->geometry.y - popup->base->geometry.y; + int popup_sx = popup->geometry.x - popup->base->current.geometry.x; + int popup_sy = popup->geometry.y - popup->base->current.geometry.y; int ox = popup_sx, oy = popup_sy; struct sway_layer_surface *layer; while (true) { -- cgit v1.2.3