diff options
Diffstat (limited to 'sway/desktop/layer_shell.c')
-rw-r--r-- | sway/desktop/layer_shell.c | 4 |
1 files changed, 2 insertions, 2 deletions
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( | |||
483 | static void popup_damage(struct sway_layer_popup *layer_popup, bool whole) { | 483 | static void popup_damage(struct sway_layer_popup *layer_popup, bool whole) { |
484 | struct wlr_xdg_popup *popup = layer_popup->wlr_popup; | 484 | struct wlr_xdg_popup *popup = layer_popup->wlr_popup; |
485 | struct wlr_surface *surface = popup->base->surface; | 485 | struct wlr_surface *surface = popup->base->surface; |
486 | int popup_sx = popup->geometry.x - popup->base->geometry.x; | 486 | int popup_sx = popup->geometry.x - popup->base->current.geometry.x; |
487 | int popup_sy = popup->geometry.y - popup->base->geometry.y; | 487 | int popup_sy = popup->geometry.y - popup->base->current.geometry.y; |
488 | int ox = popup_sx, oy = popup_sy; | 488 | int ox = popup_sx, oy = popup_sy; |
489 | struct sway_layer_surface *layer; | 489 | struct sway_layer_surface *layer; |
490 | while (true) { | 490 | while (true) { |