aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authortomaka <pierre.krieger1708@gmail.com>2014-10-27 07:30:28 +0100
committertomaka <pierre.krieger1708@gmail.com>2014-10-27 07:30:28 +0100
commit391c42d17701d2cb30c71475d406bfa208d46e4a (patch)
tree918a3dd4fba43c16b47793501b663a8e18088ace /src
parent18d9b493d73a51ebd0d1b337eae109fab157bbd8 (diff)
parent22b434bf1da4c338ffd963aca1ae873307c5e5bb (diff)
downloadglutin-391c42d17701d2cb30c71475d406bfa208d46e4a.tar.gz
glutin-391c42d17701d2cb30c71475d406bfa208d46e4a.zip
Merge pull request #76 from glennw/fix-x11-window-res
Only reject modes based on resolution when using fullscreen. This fixes ...
Diffstat (limited to 'src')
-rw-r--r--src/x11/window/mod.rs2
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"));
}