diff options
| author | tiosgz <alamica@protonmail.com> | 2022-07-18 18:15:58 +0000 |
|---|---|---|
| committer | tiosgz <alamica@protonmail.com> | 2022-07-18 18:27:57 +0000 |
| commit | 55cf8ad6697ba4c2d9fd157db6abb70be8baba65 (patch) | |
| tree | 2377b0f99d1badb2d0435e23ca977339a74de661 | |
| parent | bc610c8b829904335298bde38dc9d8bc44a67aec (diff) | |
| download | river-55cf8ad6697ba4c2d9fd157db6abb70be8baba65.tar.gz river-55cf8ad6697ba4c2d9fd157db6abb70be8baba65.tar.xz | |
XdgPopup: fix unconstrain rect with layer surfaces
The used coordinates store where the layer is on the output, but we
need the opposite.
| -rw-r--r-- | river/XdgPopup.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/river/XdgPopup.zig b/river/XdgPopup.zig index 6fb1cd6..8ac250f 100644 --- a/river/XdgPopup.zig +++ b/river/XdgPopup.zig @@ -69,8 +69,8 @@ pub fn create(wlr_xdg_popup: *wlr.XdgPopup, parent: Parent) void { const output_dimensions = layer_surface.output.getEffectiveResolution(); // The output box relative to the parent of the xdg_popup var box = wlr.Box{ - .x = layer_surface.box.x, - .y = layer_surface.box.y, + .x = -layer_surface.box.x, + .y = -layer_surface.box.y, .width = @intCast(c_int, output_dimensions.width), .height = @intCast(c_int, output_dimensions.height), }; |
