mirror of
https://github.com/pinnacle-comp/pinnacle.git
synced 2025-01-14 08:01:14 +01:00
Add some more documentation
This commit is contained in:
parent
50cede7b70
commit
363350805d
1 changed files with 7 additions and 0 deletions
|
@ -36,9 +36,16 @@ pub struct WindowState {
|
||||||
/// [`CompositorHandler.commit()`]: smithay::wayland::compositor::CompositorHandler#tymethod.commit
|
/// [`CompositorHandler.commit()`]: smithay::wayland::compositor::CompositorHandler#tymethod.commit
|
||||||
#[derive(Debug, Default)]
|
#[derive(Debug, Default)]
|
||||||
pub enum WindowResizeState {
|
pub enum WindowResizeState {
|
||||||
|
/// The window doesn't need to be moved.
|
||||||
#[default]
|
#[default]
|
||||||
Idle,
|
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<i32, Logical>),
|
WaitingForAck(Serial, Point<i32, Logical>),
|
||||||
|
/// 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<i32, Logical>),
|
WaitingForCommit(Point<i32, Logical>),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue