mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-23 22:01:31 +11:00
Fix closing X display in get_dimensions
This commit is contained in:
parent
d8ca679a6e
commit
80e4fa9ad8
|
@ -46,6 +46,7 @@ impl MonitorID {
|
|||
let screen = ffi::XScreenOfDisplay(display, screen_num as i32);
|
||||
let width = ffi::XWidthOfScreen(screen);
|
||||
let height = ffi::XHeightOfScreen(screen);
|
||||
ffi::XCloseDisplay(display);
|
||||
(width as uint, height as uint)
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue