1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
use std::os::raw::c_ulong;
use super::{models::Screen, models::Window, models::WindowHandle, Button, ModMask, XKeysym};
use crate::models::WindowChange;
use crate::Command;
#[allow(clippy::large_enum_variant)]
#[derive(Debug)]
pub enum DisplayEvent {
Movement(WindowHandle, i32, i32),
KeyCombo(ModMask, XKeysym),
KeyGrabReload,
MouseCombo(ModMask, Button, WindowHandle),
WindowCreate(Window, i32, i32),
WindowChange(WindowChange),
WindowDestroy(WindowHandle),
MouseEnteredWindow(WindowHandle),
VerifyFocusedAt(i32, i32),
MoveFocusTo(i32, i32),
MoveWindow(WindowHandle, c_ulong, i32, i32),
ResizeWindow(WindowHandle, c_ulong, i32, i32),
ScreenCreate(Screen),
SendCommand(Command),
ChangeToNormalMode,
}