diff options
Diffstat (limited to 'src/backend')
| -rw-r--r-- | src/backend/tty.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/backend/tty.rs b/src/backend/tty.rs index 439270a9..58face27 100644 --- a/src/backend/tty.rs +++ b/src/backend/tty.rs @@ -1061,7 +1061,10 @@ impl Tty { if niri.monitors_active { // Redraw the new monitor. niri.event_loop.insert_idle(move |state| { - state.niri.queue_redraw(&output); + // Guard against output disconnecting before the idle has a chance to run. + if state.niri.output_state.contains_key(&output) { + state.niri.queue_redraw(&output); + } }); } |
