Skip to content

Commit

Permalink
WIP on Wayland upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
emoon committed Jan 20, 2025
1 parent 9862ca8 commit e2ca962
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
13 changes: 6 additions & 7 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,9 @@ version = "0.3.9"
features = ["winuser", "wingdi", "libloaderapi", "errhandlingapi", "fileapi"]

[features]
default = ["wayland", "x11", "dlopen"]
dlopen = ["wayland-client/dlopen"]
# default = ["wayland", "x11", "dlopen"]
default = ["wayland", "x11"]
# dlopen = ["wayland-client/dlopen"]
x11 = ["x11-dl", "libc"]
wayland = [
"dlib",
Expand All @@ -76,19 +77,17 @@ wayland = [
]

[target.'cfg(not(any(target_os = "macos", target_os = "redox", windows, target_arch="wasm32")))'.dependencies]
wayland-client = { version = "0.29", optional = true }
wayland-protocols = { version = "0.29", features = [
wayland-client = { version = "0.31", optional = true }
wayland-protocols = { version = "0.32", features = [
"client",
"unstable_protocols",
], optional = true }
wayland-cursor = { version = "0.29", optional = true }
wayland-cursor = { version = "0.31", optional = true }
tempfile = { version = "3.3", optional = true }
x11-dl = { version = "2.19.1", optional = true }
libc = { version = "0.2.107", optional = true }
dlib = { version = "0.5", optional = true }
lazy_static = { version = "1.0", optional = true }


[target.x86_64-unknown-redox.dependencies]
orbclient = "0.3.20"

Expand Down
2 changes: 2 additions & 0 deletions src/os/posix/wayland.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,12 @@ use wayland_client::{
Attached, Display, EventQueue, GlobalManager, Main,
};
use wayland_protocols::{
/*
unstable::xdg_decoration::v1::client::zxdg_decoration_manager_v1::ZxdgDecorationManagerV1,
xdg_shell::client::{
xdg_surface::XdgSurface, xdg_toplevel::XdgToplevel, xdg_wm_base::XdgWmBase,
},
*/
};

use super::xkb_ffi;
Expand Down

0 comments on commit e2ca962

Please sign in to comment.