diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2024-11-08 09:11:28 +0300 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2024-11-08 09:11:28 +0300 |
| commit | 927abad4b42d36fc5e5bd91839ba54a5d93a89eb (patch) | |
| tree | d1a482fc0a283ab2fac20ccd751d49906e023e8a /src/input | |
| parent | 3d31f9860abf19ed45b4197505e140c4e8207fbb (diff) | |
| download | niri-927abad4b42d36fc5e5bd91839ba54a5d93a89eb.tar.gz niri-927abad4b42d36fc5e5bd91839ba54a5d93a89eb.tar.bz2 niri-927abad4b42d36fc5e5bd91839ba54a5d93a89eb.zip | |
Only call on_output_config_changed() on lid switch
We don't need to reload the niri output config.
Diffstat (limited to 'src/input')
| -rw-r--r-- | src/input/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/input/mod.rs b/src/input/mod.rs index ffd62059..9c668318 100644 --- a/src/input/mod.rs +++ b/src/input/mod.rs @@ -2438,7 +2438,7 @@ impl State { let is_closed = evt.state() == SwitchState::On; debug!("lid switch {}", if is_closed { "closed" } else { "opened" }); self.niri.is_lid_closed = is_closed; - self.reload_output_config(); + self.backend.on_output_config_changed(&mut self.niri); } let action = { |
