diff options
author | Ryan Stewart <ryan@binsoftware.com> | 2015-03-18 14:16:35 -0700 |
---|---|---|
committer | Ryan Stewart <ryan@binsoftware.com> | 2015-03-18 14:16:35 -0700 |
commit | 1b2fd6e6d01788922a90cd4e58adf371007f50a8 (patch) | |
tree | 5266e1e7a4c1141faeb71a51e01047daa32e712a /src/x11 | |
parent | 779f3ce888e0009bdbd14bc28a1e475b46df83ee (diff) | |
download | glutin-1b2fd6e6d01788922a90cd4e58adf371007f50a8.tar.gz glutin-1b2fd6e6d01788922a90cd4e58adf371007f50a8.zip |
fix headless build by ensuring NativeMonitorId enum is available internally even without the window feature; add Eq/PartialEq to NativeMonitorId
Diffstat (limited to 'src/x11')
-rw-r--r-- | src/x11/window/monitor.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/x11/window/monitor.rs b/src/x11/window/monitor.rs index c1a4897..44c5e84 100644 --- a/src/x11/window/monitor.rs +++ b/src/x11/window/monitor.rs @@ -2,7 +2,7 @@ use std::ptr; use std::collections::VecDeque; use super::super::ffi; use super::ensure_thread_init; -use window::NativeMonitorID; +use native_monitor::NativeMonitorId; pub struct MonitorID(pub u32); @@ -44,9 +44,9 @@ impl MonitorID { Some(format!("Monitor #{}", screen_num)) } - pub fn get_native_identifier(&self) -> NativeMonitorID { + pub fn get_native_identifier(&self) -> NativeMonitorId { let MonitorID(screen_num) = *self; - NativeMonitorID::Numeric(screen_num) + NativeMonitorId::Numeric(screen_num) } pub fn get_dimensions(&self) -> (u32, u32) { |