diff options
author | Glenn Watson <gw@intuitionlibrary.com> | 2014-10-27 14:47:33 +1000 |
---|---|---|
committer | Glenn Watson <gw@intuitionlibrary.com> | 2014-10-27 14:58:04 +1000 |
commit | 22b434bf1da4c338ffd963aca1ae873307c5e5bb (patch) | |
tree | 22b557b28858d8a31cae9060e51626279a778973 | |
parent | 41d7118a424513e658279df877eafd4421e10dc3 (diff) | |
download | glutin-22b434bf1da4c338ffd963aca1ae873307c5e5bb.tar.gz glutin-22b434bf1da4c338ffd963aca1ae873307c5e5bb.zip |
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.
-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 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")); } |