diff options
author | tomaka <pierre.krieger1708@gmail.com> | 2014-10-24 08:27:42 +0200 |
---|---|---|
committer | tomaka <pierre.krieger1708@gmail.com> | 2014-10-24 08:27:42 +0200 |
commit | 59ff347eed8fda8a298330fcc5ab3ad89686da32 (patch) | |
tree | 54818582f196861c284d706b4a1bba60f81f0150 /src/x11/window/monitor.rs | |
parent | d8ca679a6ec92ea8428ad5e3733a65b2e045d02c (diff) | |
parent | 80e4fa9ad80e33dd0c134ceb3b29aaafd7dec0a5 (diff) | |
download | glutin-59ff347eed8fda8a298330fcc5ab3ad89686da32.tar.gz glutin-59ff347eed8fda8a298330fcc5ab3ad89686da32.zip |
Merge pull request #64 from glennw/fix-get-dimensions
Fix closing X display in get_dimensions
Diffstat (limited to 'src/x11/window/monitor.rs')
-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) }; |