From 41e52065cc37d6b12ee93d2835166c7f6f984029 Mon Sep 17 00:00:00 2001 From: Isaac Freund Date: Fri, 8 Jan 2021 22:27:52 +0100 Subject: [PATCH] cursor: ensure output focus before focusing layer --- river/Cursor.zig | 1 + 1 file changed, 1 insertion(+) diff --git a/river/Cursor.zig b/river/Cursor.zig index ec470b3..3904dfb 100644 --- a/river/Cursor.zig +++ b/river/Cursor.zig @@ -218,6 +218,7 @@ fn handleButton(listener: *wl.Listener(*wlr.Pointer.event.Button), event: *wlr.P const wlr_layer_surface = wlr.LayerSurfaceV1.fromWlrSurface(surface); if (wlr_layer_surface.current.keyboard_interactive) { const layer_surface = @intToPtr(*LayerSurface, wlr_layer_surface.data); + self.seat.focusOutput(layer_surface.output); self.seat.setFocusRaw(.{ .layer = layer_surface }); } }