Revert "feat: power button handling"

This reverts commit 534584b9e48fcae406094367bdcb911f8957a523.
This commit is contained in:
Ashley Wulber 2025-06-13 12:52:49 -04:00 committed by Victoria Brekenfeld
parent 8e3590fb4d
commit 8a3436edb2
3 changed files with 10 additions and 31 deletions

View file

@ -49,9 +49,6 @@ use cosmic_comp_config::{
XkbConfig, XwaylandDescaling, XwaylandEavesdropping, ZoomConfig,
};
/// Offset used to convert Linux scancode to X11 keycode.
pub(crate) const X11_KEYCODE_OFFSET: u32 = 8;
#[derive(Debug)]
pub struct Config {
pub dynamic_conf: DynamicConfig,
@ -779,6 +776,9 @@ pub fn change_modifier_state(
scan_code: u32,
state: &mut State,
) {
/// Offset used to convert Linux scancode to X11 keycode.
const X11_KEYCODE_OFFSET: u32 = 8;
let mut input = |key_state, scan_code| {
let time = state.common.clock.now().as_millis();
let _ = keyboard.input(