diff --git a/src/x11/window/mod.rs b/src/x11/window/mod.rs index 99cbf9dc..6a2dffee 100644 --- a/src/x11/window/mod.rs +++ b/src/x11/window/mod.rs @@ -95,7 +95,7 @@ impl Window { best_mode = i; } }; - if best_mode == -1 { + if best_mode == -1 && builder.monitor.is_some() { return Err(format!("Could not find a suitable graphics mode")); }