aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--river/LayerSurface.zig3
-rw-r--r--river/Seat.zig1
2 files changed, 1 insertions, 3 deletions
diff --git a/river/LayerSurface.zig b/river/LayerSurface.zig
index 265a4dc..690be64 100644
--- a/river/LayerSurface.zig
+++ b/river/LayerSurface.zig
@@ -166,9 +166,6 @@ fn handleKeyboardInteractiveExclusive(output: *Output) void {
while (it) |node| : (it = node.next) {
const seat = &node.data;
- // Only grab focus of seats which have the output focused
- if (seat.focused_output != output) continue;
-
if (topmost_surface) |to_focus| {
// If we found a surface that requires focus, grab the focus of all
// seats.
diff --git a/river/Seat.zig b/river/Seat.zig
index ef561b1..2f78f83 100644
--- a/river/Seat.zig
+++ b/river/Seat.zig
@@ -152,6 +152,7 @@ pub fn focus(self: *Self, _target: ?*View) void {
// While a layer surface is exclusively focused, views may not receive focus
if (self.focused == .layer) {
const wlr_layer_surface = self.focused.layer.wlr_layer_surface;
+ assert(wlr_layer_surface.mapped);
if (wlr_layer_surface.current.keyboard_interactive == .exclusive and
(wlr_layer_surface.current.layer == .top or wlr_layer_surface.current.layer == .overlay))
{