mirror of
https://github.com/Smithay/smithay.git
synced 2024-09-29 17:38:46 +02:00
0.30: update to alpha9
This commit is contained in:
parent
58b515746b
commit
8bef81412b
2 changed files with 10 additions and 6 deletions
10
Cargo.toml
10
Cargo.toml
|
@ -43,11 +43,11 @@ slog-stdlog = { version = "4", optional = true }
|
|||
tempfile = { version = "3.0", optional = true }
|
||||
thiserror = "1.0.25"
|
||||
udev = { version = "0.6", optional = true }
|
||||
wayland-egl = { version = "0.30.0-alpha8", optional = true }
|
||||
wayland-protocols = { version = "0.30.0-alpha8", features = ["unstable_protocols", "server"], optional = true }
|
||||
wayland-server = { version = "0.30.0-alpha8", optional = true }
|
||||
wayland-sys = { version = "0.30.0-alpha8", optional = true }
|
||||
wayland-backend = { version = "0.1.0-alpha8", optional = true }
|
||||
wayland-egl = { version = "0.30.0-alpha9", optional = true }
|
||||
wayland-protocols = { version = "0.30.0-alpha9", features = ["unstable_protocols", "server"], optional = true }
|
||||
wayland-server = { version = "0.30.0-alpha9", optional = true }
|
||||
wayland-sys = { version = "0.30.0-alpha9", optional = true }
|
||||
wayland-backend = { version = "0.1.0-alpha9", optional = true }
|
||||
winit = { version = "0.26", optional = true }
|
||||
x11rb = { version = "0.9.0", optional = true }
|
||||
xkbcommon = "0.4.0"
|
||||
|
|
|
@ -56,6 +56,9 @@ pub enum Error {
|
|||
/// Failed to initialize a window
|
||||
#[error("Failed to initialize a window")]
|
||||
InitFailed(#[from] winit::error::OsError),
|
||||
#[error("Failed to create a surface for the window")]
|
||||
/// Surface creation error
|
||||
Surface(Box<dyn std::error::Error>),
|
||||
/// Context creation is not supported on the current window system
|
||||
#[error("Context creation is not supported on the current window system")]
|
||||
NotSupported,
|
||||
|
@ -181,7 +184,8 @@ where
|
|||
let size = winit_window.inner_size();
|
||||
let surface = unsafe {
|
||||
wegl::WlEglSurface::new_from_raw(wl_surface as *mut _, size.width as i32, size.height as i32)
|
||||
};
|
||||
}
|
||||
.map_err(|err| Error::Surface(err.into()))?;
|
||||
(
|
||||
EGLSurface::new(
|
||||
&display,
|
||||
|
|
Loading…
Reference in a new issue