mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2025-01-24 02:46:33 +11:00
wayland: properly handle 'decorated' option.
This commit is contained in:
parent
1cea6a65a4
commit
f7f52c21a0
1 changed files with 14 additions and 10 deletions
|
@ -257,6 +257,7 @@ impl Window {
|
|||
shell_surface.set_fullscreen(ShellFullscreenMethod::Default, Some(&monitor.output));
|
||||
ShellWindow::Plain(shell_surface)
|
||||
} else {
|
||||
if builder.decorations {
|
||||
ShellWindow::Decorated(match DecoratedSurface::new(
|
||||
surface,
|
||||
w as i32,
|
||||
|
@ -267,6 +268,9 @@ impl Window {
|
|||
Ok(s) => s,
|
||||
Err(_) => return Err(CreationError::NotSupported)
|
||||
})
|
||||
} else {
|
||||
ShellWindow::Plain(wayland_context.shell.get_shell_surface(surface))
|
||||
}
|
||||
};
|
||||
|
||||
let context = {
|
||||
|
|
Loading…
Add table
Reference in a new issue