aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortomaka <pierre.krieger1708@gmail.com>2014-10-24 08:27:42 +0200
committertomaka <pierre.krieger1708@gmail.com>2014-10-24 08:27:42 +0200
commit59ff347eed8fda8a298330fcc5ab3ad89686da32 (patch)
tree54818582f196861c284d706b4a1bba60f81f0150
parentd8ca679a6ec92ea8428ad5e3733a65b2e045d02c (diff)
parent80e4fa9ad80e33dd0c134ceb3b29aaafd7dec0a5 (diff)
downloadglutin-59ff347eed8fda8a298330fcc5ab3ad89686da32.tar.gz
glutin-59ff347eed8fda8a298330fcc5ab3ad89686da32.zip
Merge pull request #64 from glennw/fix-get-dimensions
Fix closing X display in get_dimensions
-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)
};