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/niri.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/niri.rs')
| -rw-r--r-- | src/niri.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/niri.rs b/src/niri.rs index 1bb8a6d0..e0f5a498 100644 --- a/src/niri.rs +++ b/src/niri.rs @@ -1310,7 +1310,7 @@ impl Niri { self.queue_redraw(output); } - pub fn deactivate_monitors(&mut self, backend: &Backend) { + pub fn deactivate_monitors(&mut self, backend: &mut Backend) { if !self.monitors_active { return; } @@ -1319,7 +1319,7 @@ impl Niri { backend.set_monitors_active(false); } - pub fn activate_monitors(&mut self, backend: &Backend) { + pub fn activate_monitors(&mut self, backend: &mut Backend) { if self.monitors_active { return; } |
