forge
Explore
Log in

Don't you dare go Hollow

mapped: Document RequestSizeOnce

Browse files at this commit

f18b1a70434755b92a8f0a59e8aa0302309e8b3aIvan MolodetskikhParent: 7d24ad2
src/window/mapped.rsmodified+5 -0
@@ -84,6 +84,7 @@ pub struct Mapped {
84 /// Snapshot right before an animated commit.84 /// Snapshot right before an animated commit.
85 animation_snapshot: Option<LayoutElementRenderSnapshot>,85 animation_snapshot: Option<LayoutElementRenderSnapshot>,
86 86
87+ /// State for the logic to request a size once (for floating windows).
87 request_size_once: Option<RequestSizeOnce>,88 request_size_once: Option<RequestSizeOnce>,
88 89
89 /// Transaction that the next configure should take part in, if any.90 /// Transaction that the next configure should take part in, if any.
@@ -148,10 +149,14 @@ impl InteractiveResize {
148 }149 }
149 }150 }
150 151
152+/// Request-size-once logic state.
151 #[derive(Debug, Clone, Copy)]153 #[derive(Debug, Clone, Copy)]
152 enum RequestSizeOnce {154 enum RequestSizeOnce {
155+ /// Waiting for configure to be sent with the requested size.
153 WaitingForConfigure,156 WaitingForConfigure,
157+ /// Waiting for the window to commit in response to the configure.
154 WaitingForCommit(Serial),158 WaitingForCommit(Serial),
159+ /// When configuring, use the current window size.
155 UseWindowSize,160 UseWindowSize,
156 }161 }
157 162