aboutsummaryrefslogtreecommitdiff
path: root/src/Cursor.zig
diff options
context:
space:
mode:
authorIsaac Freund <ifreund@ifreund.xyz>2020-05-08 14:51:10 +0200
committerIsaac Freund <ifreund@ifreund.xyz>2020-05-08 14:51:10 +0200
commitac735719cfc086c54ff939786823b29de2c24c0a (patch)
treec8ee87c720b067bbf8a757e8ea098d2b87393141 /src/Cursor.zig
parent71d580b81173c6e6f93354c6e783972a6aa37b27 (diff)
downloadriver-ac735719cfc086c54ff939786823b29de2c24c0a.tar.gz
river-ac735719cfc086c54ff939786823b29de2c24c0a.tar.xz
Implement initial Xwayland support
Diffstat (limited to 'src/Cursor.zig')
-rw-r--r--src/Cursor.zig11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/Cursor.zig b/src/Cursor.zig
index 98e33a6..df5e4a4 100644
--- a/src/Cursor.zig
+++ b/src/Cursor.zig
@@ -386,16 +386,7 @@ fn viewSurfaceAt(output: Output, ox: f64, oy: f64, sx: *f64, sy: *f64, floating:
if (view.floating != floating) {
continue;
}
- const surface = switch (view.impl) {
- .xdg_toplevel => |xdg_toplevel| c.wlr_xdg_surface_surface_at(
- xdg_toplevel.wlr_xdg_surface,
- ox - @intToFloat(f64, view.current_box.x),
- oy - @intToFloat(f64, view.current_box.y),
- sx,
- sy,
- ),
- };
- if (surface) |found| {
+ if (view.surfaceAt(ox, oy, sx, sy)) |found| {
return found;
}
}