diff options
author | DavidPartouche <david@manateedev.com> | 2014-09-20 11:18:03 +0200 |
---|---|---|
committer | DavidPartouche <david@manateedev.com> | 2014-09-20 11:18:03 +0200 |
commit | 6d3d84ef753b4e998221290acc1b72a75d3ff8a5 (patch) | |
tree | 1a9eb4d983e4619a99123d017a00cc47e6b68e15 /src/x11/mod.rs | |
parent | 3ac5f6d115afa3907047a8a55b58c698b47d3b28 (diff) | |
download | glutin-6d3d84ef753b4e998221290acc1b72a75d3ff8a5.tar.gz glutin-6d3d84ef753b4e998221290acc1b72a75d3ff8a5.zip |
Use the correct monitor when fullscreen for X11
Diffstat (limited to 'src/x11/mod.rs')
-rw-r--r-- | src/x11/mod.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/x11/mod.rs b/src/x11/mod.rs index 0f5f557..315c2b3 100644 --- a/src/x11/mod.rs +++ b/src/x11/mod.rs @@ -35,8 +35,9 @@ impl Window { display }; - let screen_id = unsafe { - ffi::XDefaultScreen(display) + let screen_id = match builder.monitor { + Some(MonitorID(monitor)) => monitor as i32, + None => unsafe { ffi::XDefaultScreen(display) }, }; // getting the FBConfig |