From 8a8dd9ff65fe04d9aad71e0ad8e5e69b6d275ae5 Mon Sep 17 00:00:00 2001 From: Zakariyya Von Forslun Date: Sun, 29 May 2022 23:32:08 +1000 Subject: 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. --- river/Cursor.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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| { -- cgit v1.2.3