From 80e4fa9ad80e33dd0c134ceb3b29aaafd7dec0a5 Mon Sep 17 00:00:00 2001 From: Glenn Watson Date: Fri, 24 Oct 2014 14:13:19 +1000 Subject: Fix closing X display in get_dimensions --- src/x11/window/monitor.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/x11') 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) }; -- cgit v1.2.3