diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2024-12-16 09:03:50 +0300 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2024-12-30 20:12:37 +0300 |
| commit | f38acfe98848746598233a275ac3ee226f3df658 (patch) | |
| tree | cffe239a9cb01cae9ddabbe1a01288904783d842 /src/layout/mod.rs | |
| parent | 965619d0964973966bbd1d9d8087d1e8e8ff4867 (diff) | |
| download | niri-f38acfe98848746598233a275ac3ee226f3df658.tar.gz niri-f38acfe98848746598233a275ac3ee226f3df658.tar.bz2 niri-f38acfe98848746598233a275ac3ee226f3df658.zip | |
layout: Remember whether to unfullscreen back into floating
Diffstat (limited to 'src/layout/mod.rs')
| -rw-r--r-- | src/layout/mod.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/layout/mod.rs b/src/layout/mod.rs index 5068f43a..1a87b671 100644 --- a/src/layout/mod.rs +++ b/src/layout/mod.rs @@ -3214,7 +3214,7 @@ impl<W: LayoutElement> Layout<W> { mut tile, width, is_full_width, - is_floating, + mut is_floating, } = self.remove_window(window, Transaction::new()).unwrap(); tile.stop_move_animations(); @@ -3255,6 +3255,9 @@ impl<W: LayoutElement> Layout<W> { } win.request_size(size, true, None); + + // If we're unfullscreening to floating, default to the floating layout. + is_floating = tile.unfullscreen_to_floating(); } let mut data = InteractiveMoveData { |
