From a4f5c90cf00545cd942c6ae07e3ff727b0bbed30 Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Sat, 18 Oct 2025 08:51:27 +0300 Subject: Extract set_lid_closed() --- src/input/mod.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/input/mod.rs') 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 = { -- cgit