aboutsummaryrefslogtreecommitdiffstats
path: root/src/x11
diff options
context:
space:
mode:
authorDavidPartouche <david@manateedev.com>2014-09-18 14:03:03 +0200
committerTomaka17 <pierre.krieger1708@gmail.com>2014-09-19 20:28:11 +0200
commitbd3b06e1a527466600cb0d8cd87a323974b5e5d4 (patch)
treeaafed9661fbdbf7101495d54429c1d691a8d9f69 /src/x11
parentb149fca83d390c9c04277501811a617832edc682 (diff)
downloadglutin-bd3b06e1a527466600cb0d8cd87a323974b5e5d4.tar.gz
glutin-bd3b06e1a527466600cb0d8cd87a323974b5e5d4.zip
Changed is_fullscreen to monitor.is_some()
Diffstat (limited to 'src/x11')
-rw-r--r--src/x11/ffi.rs1
-rw-r--r--src/x11/mod.rs4
2 files changed, 3 insertions, 2 deletions
diff --git a/src/x11/ffi.rs b/src/x11/ffi.rs
index 0bc52b5..f781b48 100644
--- a/src/x11/ffi.rs
+++ b/src/x11/ffi.rs
@@ -1426,6 +1426,7 @@ extern "C" {
pub fn glXSwapBuffers(dpy: *mut Display, drawable: GLXDrawable);
pub fn XkbSetDetectableAutoRepeat(dpy: *mut Display, detectable: bool, supported_rtm: *mut bool) -> bool;
+
pub fn XF86VidModeSwitchToMode(dpy: *mut Display, screen: libc::c_int,
modeline: *mut XF86VidModeModeInfo) -> Bool;
pub fn XF86VidModeSetViewPort(dpy: *mut Display, screen: libc::c_int,
diff --git a/src/x11/mod.rs b/src/x11/mod.rs
index 21e46b7..7dd3fb0 100644
--- a/src/x11/mod.rs
+++ b/src/x11/mod.rs
@@ -148,7 +148,7 @@ impl Window {
};
let mut window_attributes = ffi::CWBorderPixel | ffi::CWColormap | ffi:: CWEventMask;
- if builder.is_fullscreen {
+ if builder.monitor.is_some() {
window_attributes |= ffi::CWOverrideRedirect;
unsafe {
ffi::XF86VidModeSwitchToMode(display, screen_id, *modes.offset(best_mode as int));
@@ -270,7 +270,7 @@ impl Window {
wm_delete_window: wm_delete_window,
xf86_desk_mode: xf86_desk_mode,
screen_id: screen_id,
- is_fullscreen: builder.is_fullscreen,
+ is_fullscreen: builder.monitor.is_some(),
};
// calling glViewport