pub enum DisplayAction {
Show 18 variants KillWindow(WindowHandle), AddedWindow(WindowHandleboolbool), MoveMouseOver(WindowHandlebool), MoveMouseOverPoint((i32, i32)), SetState(WindowHandleboolWindowState), SetWindowOrder(Vec<WindowHandle>, Vec<WindowHandle>), MoveToTop(WindowHandle), DestroyedWindow(WindowHandle), WindowTakeFocus { window: Window, previous_window: Option<Window>, }, Unfocus(Option<WindowHandle>, bool), FocusWindowUnderCursor, ReplayClick(WindowHandleButton), ReadyToResizeWindow(WindowHandle), ReadyToMoveWindow(WindowHandle), SetCurrentTags(Option<TagId>), SetWindowTag(WindowHandleOption<TagId>), NormalMode, ConfigureXlibWindow(Window),
}
Expand description

These are responses from the Window manager. The display server should act on these actions.

Variants

KillWindow(WindowHandle)

Nicely ask a window if it would please close at its convenience.

AddedWindow(WindowHandleboolbool)

Get triggered after a new window is discovered and WE are managing it.

MoveMouseOver(WindowHandlebool)

Makes sure the mouse is over a given window.

MoveMouseOverPoint((i32, i32))

Makes sure the mouse is over a given point.

SetState(WindowHandleboolWindowState)

Change a windows state.

SetWindowOrder(Vec<WindowHandle>, Vec<WindowHandle>)

Sets the “z-index” order of the windows first in the array is top most

MoveToTop(WindowHandle)

Raises a given window.

DestroyedWindow(WindowHandle)

Tell the DS we no longer care about the this window and other cleanup.

WindowTakeFocus

Fields

window: Window
previous_window: Option<Window>

Tell a window that it is to become focused.

Unfocus(Option<WindowHandle>, bool)

Remove focus on any visible window by focusing the root window.

FocusWindowUnderCursor

To the window under the cursor to take the focus.

ReplayClick(WindowHandleButton)

ReadyToResizeWindow(WindowHandle)

Tell the DM we are ready to resize this window.

ReadyToMoveWindow(WindowHandle)

Tell the DM we are ready to move this window.

SetCurrentTags(Option<TagId>)

Used to let the WM know of the current displayed tag changes.

SetWindowTag(WindowHandleOption<TagId>)

Used to let the WM know of the tag for a given window.

NormalMode

Tell the DM to return to normal mode if it is not (ie resize a window or moving a window).

ConfigureXlibWindow(Window)

Configure a xlib window.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more