1. Implement new layout API, replacing previous hard-coded layout. 2. Make the widgets (previously modules) configurable. 3. Split some widgets into smaller modules. 4. Configuration file (reluctantly JSON at time of writing). 5. More correct damage handling, copying damage to next buffer.
23 lines
430 B
Rust
23 lines
430 B
Rust
use smithay_client_toolkit::keyboard::{KeyState, ModifiersState};
|
|
|
|
pub enum Cmd {
|
|
Exit,
|
|
Draw,
|
|
ForceDraw,
|
|
ToggleVisible,
|
|
MouseClick {
|
|
btn: u32,
|
|
pos: (u32, u32),
|
|
},
|
|
MouseScroll {
|
|
scroll: (f64, f64),
|
|
pos: (u32, u32),
|
|
},
|
|
Keyboard {
|
|
key: u32,
|
|
key_state: KeyState,
|
|
modifiers_state: ModifiersState,
|
|
interpreted: Option<String>,
|
|
},
|
|
}
|