pub enum DisplayAction {
Show 19 variants KillWindow(WindowHandle), AddedWindow(WindowHandleboolbool), MoveMouseOver(WindowHandlebool), MoveMouseOverPoint((i32, i32)), SetState(WindowHandleboolWindowState), SetWindowOrder(Vec<Window>), MoveToTop(WindowHandle), DestroyedWindow(WindowHandle), WindowTakeFocus { window: Window, previous_window: Option<Window>, }, Unfocus(Option<WindowHandle>, bool), FocusWindowUnderCursor, ReplayClick(WindowHandleButton), ReadyToResizeWindow(WindowHandle), ReadyToMoveWindow(WindowHandle), SetCurrentTags(Vec<TagId>), SetWindowTags(WindowHandleVec<TagId>), NormalMode, ReloadKeyGrabs(Vec<Keybind>), 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<Window>)

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(Vec<TagId>)

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

SetWindowTags(WindowHandleVec<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).

ReloadKeyGrabs(Vec<Keybind>)

SoftReload keygrabs, needed when keyboard changes.

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.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

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.