Skip to content

Commit b8bb2da

Browse files
committed
Fix layer shell popup positions
wlr_xdg_popup_unconstrain_from_box requires the coordinates of the toplevel, but popup_unconstrain was using the coordinates of the popup.
1 parent 67093ab commit b8bb2da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sway/desktop/layer_shell.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ static void popup_unconstrain(struct sway_layer_popup *popup) {
254254
struct sway_output *output = surface->output;
255255

256256
int lx, ly;
257-
wlr_scene_node_coords(popup->scene, &lx, &ly);
257+
wlr_scene_node_coords(surface->scene->node, &lx, &ly);
258258

259259
// the output box expressed in the coordinate system of the toplevel parent
260260
// of the popup

0 commit comments

Comments
 (0)