diff --git a/src/x11/window/mod.rs b/src/x11/window/mod.rs index d8480965..d69feabb 100644 --- a/src/x11/window/mod.rs +++ b/src/x11/window/mod.rs @@ -97,7 +97,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")); }