diff options
| author | Isaac Freund <ifreund@ifreund.xyz> | 2020-04-19 00:59:07 +0200 |
|---|---|---|
| committer | Isaac Freund <ifreund@ifreund.xyz> | 2020-04-19 14:31:41 +0200 |
| commit | c959a426b723fb89f1dda34893d426b90f8fa9f4 (patch) | |
| tree | b75c013387fbbd4792bba4832fcded61dc4ec9de /src/output.zig | |
| parent | cd9d4ee395b8b3cf7e12227ea2f8be640e968aab (diff) | |
| download | river-c959a426b723fb89f1dda34893d426b90f8fa9f4.tar.gz river-c959a426b723fb89f1dda34893d426b90f8fa9f4.tar.xz | |
Implement wlr-input-inhibitor
Diffstat (limited to 'src/output.zig')
| -rw-r--r-- | src/output.zig | 5 |
1 files changed, 3 insertions, 2 deletions
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); } } } |
