Use the correct monitor when fullscreen for X11

This commit is contained in:
DavidPartouche 2014-09-20 11:18:03 +02:00
parent 3ac5f6d115
commit 6d3d84ef75
2 changed files with 4 additions and 3 deletions

View file

@ -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