diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2024-12-22 09:28:57 +0300 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2024-12-30 20:12:37 +0300 |
| commit | f4f2a1f6deeffa5c13d871c534ac99ea398e9175 (patch) | |
| tree | 52c1797d384c7cfc8b5950be5b6b406434dba1fd /src/window | |
| parent | a440805ea1136f6e0cb852ff71b89b12dd426a7d (diff) | |
| download | niri-f4f2a1f6deeffa5c13d871c534ac99ea398e9175.tar.gz niri-f4f2a1f6deeffa5c13d871c534ac99ea398e9175.tar.bz2 niri-f4f2a1f6deeffa5c13d871c534ac99ea398e9175.zip | |
floating: Remember and restore window size
Diffstat (limited to 'src/window')
| -rw-r--r-- | src/window/mapped.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/window/mapped.rs b/src/window/mapped.rs index 97fc9596..a92608d3 100644 --- a/src/window/mapped.rs +++ b/src/window/mapped.rs @@ -816,6 +816,11 @@ impl LayoutElement for Mapped { return current_size; } + // FIXME: Ideally, if the window doesn't have a pending resize or an uncommitted acked + // size, we should request the current window size, rather than the requested size. This + // will keep the window size as-is when moving to floating in the case that a window + // changed its size in the tiling layout and then we requested a resize. However, that's + // pretty edge-casy and I don't want to complicate this logic for that at the moment. self.requested_size().unwrap_or(current_size) } |
