From ac735719cfc086c54ff939786823b29de2c24c0a Mon Sep 17 00:00:00 2001 From: Isaac Freund Date: Fri, 8 May 2020 14:51:10 +0200 Subject: Implement initial Xwayland support --- src/Cursor.zig | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'src/Cursor.zig') 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; } } -- cgit v1.2.3