mirror of
https://github.com/storytold/winit.git
synced 2026-11-24 13:20:44 +01:00
Fix closing X display in get_dimensions
This commit is contained in:
1 parent
d8ca679a6e
commit
80e4fa9ad8
1 file changed
+1
@@ -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)
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user