mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2025-01-11 21:31:29 +11:00
Get the monitors attached to the display, and their resolution for X11
This commit is contained in:
parent
6f47e6ff8c
commit
906324e267
|
@ -140,7 +140,7 @@ impl Window {
|
||||||
|
|
||||||
// finally creating the window
|
// finally creating the window
|
||||||
let window = unsafe {
|
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,
|
dimensions.val1() as libc::c_uint, 0, visual_infos.depth, ffi::InputOutput,
|
||||||
visual_infos.visual, window_attributes,
|
visual_infos.visual, window_attributes,
|
||||||
&mut set_win_attr);
|
&mut set_win_attr);
|
||||||
|
|
Loading…
Reference in a new issue