mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-25 23:01:30 +11:00
Update to new Platform structure.
This commit is contained in:
parent
562d6cd1e3
commit
9e489fee01
|
@ -20,6 +20,8 @@ use std::collections::VecDeque;
|
||||||
use std::sync::{Arc, Mutex};
|
use std::sync::{Arc, Mutex};
|
||||||
use std::ffi::CString;
|
use std::ffi::CString;
|
||||||
|
|
||||||
|
use platform::MonitorID as PlatformMonitorID;
|
||||||
|
|
||||||
use self::context::WaylandContext;
|
use self::context::WaylandContext;
|
||||||
|
|
||||||
extern crate wayland_client as wayland;
|
extern crate wayland_client as wayland;
|
||||||
|
@ -144,7 +146,7 @@ impl Window {
|
||||||
);
|
);
|
||||||
|
|
||||||
let shell_surface = wayland_context.shell.get_shell_surface(surface);
|
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));
|
shell_surface.set_fullscreen(ShellFullscreenMethod::Default, Some(&monitor.output));
|
||||||
} else {
|
} else {
|
||||||
shell_surface.set_toplevel();
|
shell_surface.set_toplevel();
|
||||||
|
|
Loading…
Reference in a new issue