aboutsummaryrefslogtreecommitdiff
path: root/src/input
diff options
context:
space:
mode:
Diffstat (limited to 'src/input')
-rw-r--r--src/input/mod.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/input/mod.rs b/src/input/mod.rs
index 42f90879..876295a2 100644
--- a/src/input/mod.rs
+++ b/src/input/mod.rs
@@ -3931,9 +3931,8 @@ impl State {
if switch == Switch::Lid {
let is_closed = evt.state() == SwitchState::On;
- debug!("lid switch {}", if is_closed { "closed" } else { "opened" });
- self.niri.is_lid_closed = is_closed;
- self.backend.on_output_config_changed(&mut self.niri);
+ trace!("lid switch {}", if is_closed { "closed" } else { "opened" });
+ self.set_lid_closed(is_closed);
}
let action = {