diff options
-rw-r--r-- | src/x11/window/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/x11/window/mod.rs b/src/x11/window/mod.rs index d848096..d69feab 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")); } |