diff options
author | DavidPartouche <david@manateedev.com> | 2014-09-19 15:42:47 +0200 |
---|---|---|
committer | Tomaka17 <pierre.krieger1708@gmail.com> | 2014-09-19 20:30:15 +0200 |
commit | 906324e26744a773d43b8737fdc60ae730f24141 (patch) | |
tree | ea19df2091d8d23b3cd95d90d82404785c01febc /src | |
parent | 6f47e6ff8ca839899abb67b3d656e04231ca0cf8 (diff) | |
download | glutin-906324e26744a773d43b8737fdc60ae730f24141.tar.gz glutin-906324e26744a773d43b8737fdc60ae730f24141.zip |
Get the monitors attached to the display, and their resolution for X11
Diffstat (limited to 'src')
-rw-r--r-- | src/x11/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/x11/mod.rs b/src/x11/mod.rs index 7d732a2..0f5f557 100644 --- a/src/x11/mod.rs +++ b/src/x11/mod.rs @@ -140,7 +140,7 @@ impl Window { // finally creating the window let window = unsafe { - let win = ffi::XCreateWindow(display, root, 50, 50, dimensions.val0() as libc::c_uint, + let win = ffi::XCreateWindow(display, root, 0, 0, dimensions.val0() as libc::c_uint, dimensions.val1() as libc::c_uint, 0, visual_infos.depth, ffi::InputOutput, visual_infos.visual, window_attributes, &mut set_win_attr); |