From 6f47e6ff8ca839899abb67b3d656e04231ca0cf8 Mon Sep 17 00:00:00 2001 From: DavidPartouche Date: Thu, 18 Sep 2014 14:03:03 +0200 Subject: Changed is_fullscreen to monitor.is_some() --- src/x11/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/x11') diff --git a/src/x11/mod.rs b/src/x11/mod.rs index 97552b0..7d732a2 100644 --- a/src/x11/mod.rs +++ b/src/x11/mod.rs @@ -129,7 +129,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)); @@ -251,7 +251,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 -- cgit v1.2.3