From 838d4e1de6b406462994c2782fd008bab72e650a Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Mon, 16 Dec 2024 09:10:53 +0300 Subject: [PATCH] layout: Support fullscreen for auto-floating windows --- src/layout/workspace.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/layout/workspace.rs b/src/layout/workspace.rs index 6220fd1e7..a3c1dcd54 100644 --- a/src/layout/workspace.rs +++ b/src/layout/workspace.rs @@ -479,7 +479,9 @@ impl Workspace { ); tile.set_unfullscreen_to_floating(is_floating); - if is_floating { + // If the tile is pending fullscreen, open it in the scrolling layout where it can go + // fullscreen. + if is_floating && !tile.window().is_pending_fullscreen() { self.add_floating_tile(tile, None, activate); } else { self.add_tile(None, tile, activate, width, is_full_width); @@ -562,6 +564,7 @@ impl Workspace { ) { self.enter_output_for_window(tile.window()); + // TODO: open-fullscreen into scrolling. let floating_has_window = self.floating.has_window(right_of); if is_floating || floating_has_window { if floating_has_window {