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

commit98ac5be89e130e2a2976c43f7659681b7ae5e787
parentdc778c309c
authorIsaac Freund <[email protected]>
date2020-06-11 01:15
command: don't zoom floating views

 river/command/zoom.zig | 3 +++
 1 file changed, 3 insertions(+)

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