diff options
author | Victor Berger <victor.berger@m4x.org> | 2015-05-13 08:32:20 +0200 |
---|---|---|
committer | Victor Berger <victor.berger@m4x.org> | 2015-05-13 08:32:20 +0200 |
commit | 9e489fee01da22eb1ff029e14544270cc0360fdd (patch) | |
tree | 5f8c08949e5266914ce9e6d25237f34a6704a6bb /src/api/wayland | |
parent | 562d6cd1e3c3d0c2e9b0f11b2e21ca06214acd41 (diff) | |
download | glutin-9e489fee01da22eb1ff029e14544270cc0360fdd.tar.gz glutin-9e489fee01da22eb1ff029e14544270cc0360fdd.zip |
Update to new Platform structure.
Diffstat (limited to 'src/api/wayland')
-rw-r--r-- | src/api/wayland/mod.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/api/wayland/mod.rs b/src/api/wayland/mod.rs index 7a53abe..569f93f 100644 --- a/src/api/wayland/mod.rs +++ b/src/api/wayland/mod.rs @@ -20,6 +20,8 @@ use std::collections::VecDeque; use std::sync::{Arc, Mutex}; use std::ffi::CString; +use platform::MonitorID as PlatformMonitorID; + use self::context::WaylandContext; extern crate wayland_client as wayland; @@ -144,7 +146,7 @@ impl Window { ); let shell_surface = wayland_context.shell.get_shell_surface(surface); - if let Some(ref monitor) = builder.monitor { + if let Some(PlatformMonitorID::Wayland(ref monitor)) = builder.monitor { shell_surface.set_fullscreen(ShellFullscreenMethod::Default, Some(&monitor.output)); } else { shell_surface.set_toplevel(); |