Skip to content

Commit

Permalink
layout: Support fullscreen for auto-floating windows
Browse files Browse the repository at this point in the history
  • Loading branch information
YaLTeR committed Dec 16, 2024
1 parent 1bcd127 commit 6ba8bf7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/layout/workspace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,9 @@ impl<W: LayoutElement> Workspace<W> {
);
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);
Expand Down Expand Up @@ -562,6 +564,7 @@ impl<W: LayoutElement> Workspace<W> {
) {
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 {
Expand Down

0 comments on commit 6ba8bf7

Please sign in to comment.