tty: Remove warning when rendering with inactive device
Browse files at this commita6febb86aa5af0df7bf2792ca027ef95a503d599Parent: 3b76cb71 changed file +2 -1
- src/backend/tty.rs +2 -1
src/backend/tty.rsmodified+2 -1
| @@ -1382,7 +1382,8 @@ impl Tty { | |||
| 1382 | span.emit_text(&surface.name.connector); | 1382 | span.emit_text(&surface.name.connector); |
| 1383 | 1383 | ||
| 1384 | if !device.drm.is_active() { | 1384 | if !device.drm.is_active() { |
| 1385 | - warn!("device is inactive"); | 1385 | + // This branch hits any time we try to render while the user had switched to a |
| 1386 | + // different VT, so don't print anything here. | ||
| 1386 | return rv; | 1387 | return rv; |
| 1387 | } | 1388 | } |
| 1388 | 1389 | ||