diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2025-02-05 08:38:38 +0300 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2025-02-05 08:41:40 +0300 |
| commit | f18b1a70434755b92a8f0a59e8aa0302309e8b3a (patch) | |
| tree | a9d177e701c5175958a4a6b7cad5bb7359992dbf /src/window | |
| parent | 7d24ad23c2bc690b22b1f13ad4598dc8323d128b (diff) | |
| download | niri-f18b1a70434755b92a8f0a59e8aa0302309e8b3a.tar.gz niri-f18b1a70434755b92a8f0a59e8aa0302309e8b3a.tar.bz2 niri-f18b1a70434755b92a8f0a59e8aa0302309e8b3a.zip | |
mapped: Document RequestSizeOnce
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 83a6360d..7b542574 100644 --- a/src/window/mapped.rs +++ b/src/window/mapped.rs @@ -84,6 +84,7 @@ pub struct Mapped { /// Snapshot right before an animated commit. animation_snapshot: Option<LayoutElementRenderSnapshot>, + /// State for the logic to request a size once (for floating windows). request_size_once: Option<RequestSizeOnce>, /// Transaction that the next configure should take part in, if any. @@ -148,10 +149,14 @@ impl InteractiveResize { } } +/// Request-size-once logic state. #[derive(Debug, Clone, Copy)] enum RequestSizeOnce { + /// Waiting for configure to be sent with the requested size. WaitingForConfigure, + /// Waiting for the window to commit in response to the configure. WaitingForCommit(Serial), + /// When configuring, use the current window size. UseWindowSize, } |
