diff options
author | Glenn Watson <gw@intuitionlibrary.com> | 2014-10-24 14:13:19 +1000 |
---|---|---|
committer | Glenn Watson <gw@intuitionlibrary.com> | 2014-10-24 14:13:19 +1000 |
commit | 80e4fa9ad80e33dd0c134ceb3b29aaafd7dec0a5 (patch) | |
tree | 54818582f196861c284d706b4a1bba60f81f0150 /src/x11/window | |
parent | d8ca679a6ec92ea8428ad5e3733a65b2e045d02c (diff) | |
download | glutin-80e4fa9ad80e33dd0c134ceb3b29aaafd7dec0a5.tar.gz glutin-80e4fa9ad80e33dd0c134ceb3b29aaafd7dec0a5.zip |
Fix closing X display in get_dimensions
Diffstat (limited to 'src/x11/window')
-rw-r--r-- | src/x11/window/monitor.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/x11/window/monitor.rs b/src/x11/window/monitor.rs index b72ed15..465d132 100644 --- a/src/x11/window/monitor.rs +++ b/src/x11/window/monitor.rs @@ -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) }; |