aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIsaac Freund <ifreund@ifreund.xyz>2021-01-08 22:27:52 +0100
committerIsaac Freund <ifreund@ifreund.xyz>2021-01-08 22:27:52 +0100
commit41e52065cc37d6b12ee93d2835166c7f6f984029 (patch)
tree0eecde516e4a1ffc4c6b6b8b31409a82c2a39d72
parenta029105f154f256f3f45a010b11e800a23380639 (diff)
downloadriver-41e52065cc37d6b12ee93d2835166c7f6f984029.tar.gz
river-41e52065cc37d6b12ee93d2835166c7f6f984029.tar.xz
cursor: ensure output focus before focusing layer
-rw-r--r--river/Cursor.zig1
1 files changed, 1 insertions, 0 deletions
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 });
}
}