diff options
| author | Isaac Freund <ifreund@ifreund.xyz> | 2020-06-11 01:15:01 +0200 |
|---|---|---|
| committer | Isaac Freund <ifreund@ifreund.xyz> | 2020-06-11 01:15:01 +0200 |
| commit | 8839ae7335b3650e538e4671bd7aaae8b0adc0f8 (patch) | |
| tree | bd30a16246143c14c16c210702d42fa5037a329c | |
| parent | ff219c7d8d33838bd004b99c3ab246e7be1776db (diff) | |
| download | river-8839ae7335b3650e538e4671bd7aaae8b0adc0f8.tar.gz river-8839ae7335b3650e538e4671bd7aaae8b0adc0f8.tar.xz | |
command: don't zoom floating views
| -rw-r--r-- | river/command/zoom.zig | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/river/command/zoom.zig b/river/command/zoom.zig index 59156ab..5988119 100644 --- a/river/command/zoom.zig +++ b/river/command/zoom.zig @@ -38,6 +38,9 @@ pub fn zoom( const output = seat.focused_output; const focused_node = @fieldParentPtr(ViewStack(View).Node, "view", current_focus); + // Don't zoom floating views + if (current_focus.floating) return; + var it = ViewStack(View).iterator(output.views.first, output.current_focused_tags); const zoom_node = if (focused_node == it.next()) if (it.next()) |second| second else null |
