Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update smithay-client-toolkit to v0.18 #5276

Closed
wants to merge 20 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
97 changes: 53 additions & 44 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions nix/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,12 @@
buildInputs =
buildInputs
++ (with pkgs.rust-bin; [
stable.latest.minimal
stable.latest.clippy
(stable.latest.minimal.override {
extensions = [
"clippy"
"rust-src"
];
})

nightly.latest.rustfmt
nightly.latest.rust-analyzer
Expand Down
8 changes: 4 additions & 4 deletions window/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,10 @@ xcb-imdkit = { version="0.3", git="https://github.com/wez/xcb-imdkit-rs.git", re
zbus = "3.14"
zvariant = "3.15"

smithay-client-toolkit = {version = "0.17.0", default-features=false, optional=true}
wayland-protocols = {version="0.30", optional=true}
wayland-client = {version="0.30", optional=true}
wayland-egl = {version="0.30", optional=true}
smithay-client-toolkit = {version = "0.18", default-features=false, optional=true}
wayland-protocols = {version="0.31", optional=true}
wayland-client = {version="0.31", optional=true}
wayland-egl = {version="0.32", optional=true}

[target.'cfg(target_os="macos")'.dependencies]
cocoa = "0.25"
Expand Down
6 changes: 3 additions & 3 deletions window/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ fn main() {

let dest = PathBuf::from(&env::var("OUT_DIR").unwrap());
let target = env::var("TARGET").unwrap();
let mut file = File::create(&dest.join("egl_bindings.rs")).unwrap();
let mut file = File::create(dest.join("egl_bindings.rs")).unwrap();
let reg = Registry::new(
Api::Egl,
(1, 5),
Expand Down Expand Up @@ -43,13 +43,13 @@ fn main() {
}

if target.contains("windows") {
let mut file = File::create(&dest.join("wgl_bindings.rs")).unwrap();
let mut file = File::create(dest.join("wgl_bindings.rs")).unwrap();
let reg = Registry::new(Api::Wgl, (1, 0), Profile::Core, Fallbacks::All, []);

reg.write_bindings(gl_generator::StructGenerator, &mut file)
.unwrap();

let mut file = File::create(&dest.join("wgl_extra_bindings.rs")).unwrap();
let mut file = File::create(dest.join("wgl_extra_bindings.rs")).unwrap();
Registry::new(
Api::Wgl,
(1, 0),
Expand Down
4 changes: 2 additions & 2 deletions window/src/os/wayland/connection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ impl WaylandConnection {
let mut events = Events::with_capacity(8);

let wl_fd = {
let read_guard = self.event_queue.borrow().prepare_read()?;
let read_guard = self.event_queue.borrow().prepare_read().unwrap();
read_guard.connection_fd().as_raw_fd()
};

Expand Down Expand Up @@ -100,7 +100,7 @@ impl WaylandConnection {
continue;
}

if let Ok(guard) = event_q.prepare_read() {
if let Some(guard) = event_q.prepare_read() {
if let Err(err) = guard.read() {
log::trace!("Event Q error: {:?}", err);
if let WaylandError::Protocol(perr) = err {
Expand Down
Loading
Loading