layout: Plug in stateless view switching

This commit is contained in:
Dorota Czaplejewicz
2020-12-03 19:44:26 +00:00
parent 3b06eadef5
commit 8ab6997b21
2 changed files with 7 additions and 43 deletions

View File

@ -10,7 +10,7 @@ pub struct KeySym(pub String);
type View = String;
/// Use to send modified keypresses
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
pub enum Modifier {
/// Control and Alt are the only modifiers
/// which doesn't interfere with levels,