wayland: properly handle 'decorated' option.

This commit is contained in:
Victor Berger 2015-08-16 16:21:26 +02:00
parent 1cea6a65a4
commit f7f52c21a0

View file

@ -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 = {