mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-23 02:05:33 +07:00
tty: Remove warning when rendering with inactive device
This commit is contained in:
+2
-1
@@ -1382,7 +1382,8 @@ impl Tty {
|
|||||||
span.emit_text(&surface.name.connector);
|
span.emit_text(&surface.name.connector);
|
||||||
|
|
||||||
if !device.drm.is_active() {
|
if !device.drm.is_active() {
|
||||||
warn!("device is inactive");
|
// This branch hits any time we try to render while the user had switched to a
|
||||||
|
// different VT, so don't print anything here.
|
||||||
return rv;
|
return rv;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user