From 22b434bf1da4c338ffd963aca1ae873307c5e5bb Mon Sep 17 00:00:00 2001 From: Glenn Watson Date: Mon, 27 Oct 2014 14:47:33 +1000 Subject: Only reject modes based on resolution when using fullscreen. This fixes creating a window that is not the same resolution as an existing video mode. --- src/x11/window/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/x11/window/mod.rs b/src/x11/window/mod.rs index 99cbf9d..6a2dffe 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")); } -- cgit v1.2.3