From b813f99abd2d6e09eb72e8c0083e92b486b4b210 Mon Sep 17 00:00:00 2001 From: Christian Meissl Date: Sun, 28 Jan 2024 16:18:52 +0100 Subject: tty: reset surface state after changing monitor state changing the "ACTIVE" property of a surface requires to re-evaluate the surface state. --- src/input.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/input.rs') 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(); -- cgit