From 363350805d4fba38f76058b75ee42fd3642fd40f Mon Sep 17 00:00:00 2001 From: Seaotatop Date: Fri, 23 Jun 2023 10:25:10 -0500 Subject: [PATCH] Add some more documentation --- src/window/window_state.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/window/window_state.rs b/src/window/window_state.rs index 8f11322..2226dee 100644 --- a/src/window/window_state.rs +++ b/src/window/window_state.rs @@ -36,9 +36,16 @@ pub struct WindowState { /// [`CompositorHandler.commit()`]: smithay::wayland::compositor::CompositorHandler#tymethod.commit #[derive(Debug, Default)] pub enum WindowResizeState { + /// The window doesn't need to be moved. #[default] Idle, + /// The window has received a configure request with a new size. The desired location and the + /// configure request's serial should be provided here. WaitingForAck(Serial, Point), + /// The client has received the configure request and has successfully changed its size. It's + /// now safe to move the window in [`CompositorHandler.commit()`] without flickering. + /// + /// [`CompositorHandler.commit()`]: smithay::wayland::compositor::CompositorHandler#tymethod.commit WaitingForCommit(Point), }