aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIsaac Freund <ifreund@ifreund.xyz>2020-06-28 23:15:30 +0200
committerIsaac Freund <ifreund@ifreund.xyz>2020-06-29 01:04:37 +0200
commitacd08840ab19253ec06bbb04a3b8ef008dd78c1f (patch)
tree9f73bd1374d574376ba3910ce9a06ad5ea44c182
parent3cbd95fadcb7119336981607b51a3084b9c6aac7 (diff)
downloadriver-acd08840ab19253ec06bbb04a3b8ef008dd78c1f.tar.gz
river-acd08840ab19253ec06bbb04a3b8ef008dd78c1f.tar.xz
command: disable focus-view in fullscreen
-rw-r--r--river/command/focus_view.zig3
1 files changed, 3 insertions, 0 deletions
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) {