diff options
| author | Christian Meissl <meissl.christian@gmail.com> | 2024-01-28 16:18:52 +0100 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2024-01-30 08:03:21 +0400 |
| commit | b813f99abd2d6e09eb72e8c0083e92b486b4b210 (patch) | |
| tree | 6c2a87e3b5ffe806a532bdb52de5655babaae785 /src/input.rs | |
| parent | d9b9cec8b850d5ff404f79d2183a02c619423a4a (diff) | |
| download | niri-b813f99abd2d6e09eb72e8c0083e92b486b4b210.tar.gz niri-b813f99abd2d6e09eb72e8c0083e92b486b4b210.tar.bz2 niri-b813f99abd2d6e09eb72e8c0083e92b486b4b210.zip | |
tty: reset surface state after changing monitor state
changing the "ACTIVE" property of a surface requires
to re-evaluate the surface state.
Diffstat (limited to 'src/input.rs')
| -rw-r--r-- | src/input.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/input.rs b/src/input.rs index b9b91545..0b671b4d 100644 --- a/src/input.rs +++ b/src/input.rs @@ -51,7 +51,7 @@ impl State { // Power on monitors if they were off. if should_activate_monitors(&event) { - self.niri.activate_monitors(&self.backend); + self.niri.activate_monitors(&mut self.backend); } let hide_hotkey_overlay = @@ -284,7 +284,7 @@ impl State { self.niri.suppressed_keys.clear(); } Action::PowerOffMonitors => { - self.niri.deactivate_monitors(&self.backend); + self.niri.deactivate_monitors(&mut self.backend); } Action::ToggleDebugTint => { self.backend.toggle_debug_tint(); |
