Skip to content

Commit

Permalink
cursor: fix Xwayland unmanaged surfaceAt coordinates
Browse files Browse the repository at this point in the history
The x and y coordinates for unmanaged Xwayland views were reversed
in the fullscreen branch of the surfaceAt() function.
  • Loading branch information
zakvf authored and ifreund committed May 29, 2022
1 parent 7b554bd commit 8a8dd9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion river/Cursor.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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| {
Expand Down

0 comments on commit 8a8dd9f

Please sign in to comment.