From 906324e26744a773d43b8737fdc60ae730f24141 Mon Sep 17 00:00:00 2001 From: DavidPartouche Date: Fri, 19 Sep 2014 15:42:47 +0200 Subject: Get the monitors attached to the display, and their resolution for X11 --- src/x11/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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); -- cgit v1.2.3