aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sway/desktop/xdg_shell.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/desktop/xdg_shell.c b/sway/desktop/xdg_shell.c
index c1e5bc68..5fae8296 100644
--- a/sway/desktop/xdg_shell.c
+++ b/sway/desktop/xdg_shell.c
@@ -72,8 +72,8 @@ static void popup_unconstrain(struct sway_xdg_popup *popup) {
72 // the output box expressed in the coordinate system of the toplevel parent 72 // the output box expressed in the coordinate system of the toplevel parent
73 // of the popup 73 // of the popup
74 struct wlr_box output_toplevel_sx_box = { 74 struct wlr_box output_toplevel_sx_box = {
75 .x = output->lx - view->container->pending.content_x, 75 .x = output->lx - view->container->pending.content_x + view->geometry.x,
76 .y = output->ly - view->container->pending.content_y, 76 .y = output->ly - view->container->pending.content_y + view->geometry.y,
77 .width = output->width, 77 .width = output->width,
78 .height = output->height, 78 .height = output->height,
79 }; 79 };