From c959a426b723fb89f1dda34893d426b90f8fa9f4 Mon Sep 17 00:00:00 2001 From: Isaac Freund Date: Sun, 19 Apr 2020 00:59:07 +0200 Subject: Implement wlr-input-inhibitor --- src/output.zig | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/output.zig') diff --git a/src/output.zig b/src/output.zig index 3475f8c..fa09b07 100644 --- a/src/output.zig +++ b/src/output.zig @@ -277,12 +277,13 @@ pub const Output = struct { if (topmost_surface) |to_focus| { // If we found a surface that requires focus, grab the focus of all // seats. - seat.focusLayer(to_focus); + seat.setFocusRaw(.{ .layer = to_focus }); } else if (seat.focused_layer) |current_focus| { // If the seat is currently focusing a layer without keyboard // interactivity, clear the focused layer. if (!current_focus.wlr_layer_surface.current.keyboard_interactive) { - seat.focusLayer(null); + seat.setFocusRaw(.{ .none = {} }); + seat.focus(null); } } } -- cgit v1.2.3