aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGlenn Watson <gw@intuitionlibrary.com>2014-10-24 14:13:19 +1000
committerGlenn Watson <gw@intuitionlibrary.com>2014-10-24 14:13:19 +1000
commit80e4fa9ad80e33dd0c134ceb3b29aaafd7dec0a5 (patch)
tree54818582f196861c284d706b4a1bba60f81f0150 /src
parentd8ca679a6ec92ea8428ad5e3733a65b2e045d02c (diff)
downloadglutin-80e4fa9ad80e33dd0c134ceb3b29aaafd7dec0a5.tar.gz
glutin-80e4fa9ad80e33dd0c134ceb3b29aaafd7dec0a5.zip
Fix closing X display in get_dimensions
Diffstat (limited to 'src')
-rw-r--r--src/x11/window/monitor.rs1
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)
};