Use Alt as mod with winit backend

This commit is contained in:
Ivan Molodetskikh
2023-08-13 07:45:10 +04:00
parent e8e4853e93
commit 0acd1d04e1
3 changed files with 22 additions and 6 deletions
+3 -1
View File
@@ -28,6 +28,7 @@ use smithay::utils::DeviceFd;
use smithay_drm_extras::edid::EdidInfo;
use crate::backend::Backend;
use crate::input::CompositorMod;
use crate::niri::OutputRenderElements;
use crate::{LoopData, Niri};
@@ -111,7 +112,8 @@ impl Tty {
.insert_source(input_backend, |event, _, data| {
let tty = data.tty.as_mut().unwrap();
let mut change_vt = |vt| tty.change_vt(vt);
data.niri.process_input_event(&mut change_vt, event);
data.niri
.process_input_event(&mut change_vt, CompositorMod::Super, event);
})
.unwrap();