git.lucas.co / cce-compositor
Wayland compositor (wlroots)
git clone https://git.lucas.co/cce-compositor.git

commitbca2fa4c4fc793f251619444a561e37e472ff8dd
parentad24f059fe
authorIsaac Freund <[email protected]>
date2020-06-28 23:15
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) {