aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZakariyya Von Forslun <zakariyyavf@protonmail.com>2022-05-29 23:32:08 +1000
committerIsaac Freund <mail@isaacfreund.com>2022-05-29 16:26:16 +0200
commit8a8dd9ff65fe04d9aad71e0ad8e5e69b6d275ae5 (patch)
tree5c5780b496e50c019e54928bdbb0895d1ea0c402
parent7b554bde684b346aa5b307933f14277b0a6a7810 (diff)
downloadriver-8a8dd9ff65fe04d9aad71e0ad8e5e69b6d275ae5.tar.gz
river-8a8dd9ff65fe04d9aad71e0ad8e5e69b6d275ae5.tar.xz
cursor: fix Xwayland unmanaged surfaceAt coordinates
The x and y coordinates for unmanaged Xwayland views were reversed in the fullscreen branch of the surfaceAt() function.
-rw-r--r--river/Cursor.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/river/Cursor.zig b/river/Cursor.zig
index 73f48a4..ee47992 100644
--- a/river/Cursor.zig
+++ b/river/Cursor.zig
@@ -579,7 +579,7 @@ pub fn surfaceAt(self: Self) ?SurfaceAtResult {
if (layerSurfaceAt(output.getLayer(.overlay).*, ox, oy)) |s| return s;
if (fullscreen_view) |view| {
- if (build_options.xwayland) if (xwaylandUnmanagedSurfaceAt(ly, lx)) |s| return s;
+ if (build_options.xwayland) if (xwaylandUnmanagedSurfaceAt(lx, ly)) |s| return s;
var sx: f64 = undefined;
var sy: f64 = undefined;
if (view.surfaceAt(ox, oy, &sx, &sy)) |found| {