forge
Explore
Log in

Don't you dare go Hollow

tty: Remove warning when rendering with inactive device

Browse files at this commit

a6febb86aa5af0df7bf2792ca027ef95a503d599Ivan MolodetskikhParent: 3b76cb7
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