From acd08840ab19253ec06bbb04a3b8ef008dd78c1f Mon Sep 17 00:00:00 2001 From: Isaac Freund Date: Sun, 28 Jun 2020 23:15:30 +0200 Subject: [PATCH] command: disable focus-view in fullscreen --- river/command/focus_view.zig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/river/command/focus_view.zig b/river/command/focus_view.zig index 3d7d1b8..134aa35 100644 --- a/river/command/focus_view.zig +++ b/river/command/focus_view.zig @@ -38,6 +38,9 @@ pub fn focusView( const output = seat.focused_output; if (seat.focused_view) |current_focus| { + // If the focused view is fullscreen, do nothing + if (current_focus.current.fullscreen) return; + // If there is a currently focused view, focus the next visible view in the stack. const focused_node = @fieldParentPtr(ViewStack(View).Node, "view", current_focus); var it = switch (direction) {