summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Cargo.lock16
-rw-r--r--Cargo.toml6
-rw-r--r--src/state.rs5
3 files changed, 14 insertions, 13 deletions
diff --git a/Cargo.lock b/Cargo.lock
index a6a845e..86274a2 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -676,9 +676,9 @@ checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f"
[[package]]
name = "wayrs-client"
-version = "0.5.0"
+version = "0.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9db989c01a4c0bf6549c82c08b325cc3ee0f87f0e12137859686b329202a2707"
+checksum = "ed413f9d3bd0bb8de25ec136021ad06188999216af0d78f7fc3f5f7dc6f9b96a"
dependencies = [
"nix",
"thiserror",
@@ -687,18 +687,18 @@ dependencies = [
[[package]]
name = "wayrs-protocols"
-version = "0.5.0"
+version = "0.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "89f2cc382c222b490e76071afc66d752433822bdeb2fd691ae7527f77adc66a7"
+checksum = "167ea752a509ad8e252446c5832591a4db77a10996650cdae2933d2e997a5e62"
dependencies = [
"wayrs-client",
]
[[package]]
name = "wayrs-scanner"
-version = "0.4.0"
+version = "0.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "92d7707f78f8cd5d745891311fc08cd76ba80bef0f593f94cd59450151432939"
+checksum = "0f78ba1bbb0cceb45e3cc435777743efbadcf94a31cb9f1503ac0d1d5626514b"
dependencies = [
"convert_case",
"proc-macro2",
@@ -709,9 +709,9 @@ dependencies = [
[[package]]
name = "wayrs-utils"
-version = "0.4.0-beta.1"
+version = "0.4.0-beta.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "85f5b5d29578e9bf93fa800c1fe168d648f49e422ab1385da85e8f4222cc28aa"
+checksum = "8bd51c1721f4e6d1c7b82d4c45aa5da232eb9c24310dcd0d172d85a811c516a9"
dependencies = [
"memmap2",
"shmemfdrs",
diff --git a/Cargo.toml b/Cargo.toml
index 30bd43e..a342566 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -18,9 +18,9 @@ memchr = "2"
signal-hook = { version = "0.3", default-features = false }
nix = { version = "0.26", default-features = false, features = ["fs", "poll"] }
-wayrs-client = "0.5"
-wayrs-utils = { version = "0.4.0-beta.1", features = ["cursor", "shm_alloc", "seats"] }
-wayrs-protocols = { version = "0.5", features = ["wlr-layer-shell-unstable-v1", "viewporter", "fractional-scale-v1"] }
+wayrs-client = "0.7"
+wayrs-utils = { version = "0.4.0-beta.4", features = ["cursor", "shm_alloc", "seats"] }
+wayrs-protocols = { version = "0.7", features = ["wlr-layer-shell-unstable-v1", "viewporter", "fractional-scale-v1"] }
[profile.release]
lto = "fat"
diff --git a/src/state.rs b/src/state.rs
index 4741efa..0f8e4a7 100644
--- a/src/state.rs
+++ b/src/state.rs
@@ -305,6 +305,7 @@ fn layer_surface_cb(
.unwrap();
state.drop_bar(conn, bar_index);
}
+ _ => (),
}
}
@@ -419,7 +420,7 @@ fn wl_pointer_cb(
pointer.scroll_frame.stop = true;
}
}
- Event::AxisDiscrete(_) | Event::AxisValue120(_) => (),
+ _ => (),
}
}
@@ -429,7 +430,7 @@ fn fractional_scale_cb(
fractional_scale: WpFractionalScaleV1,
event: wp_fractional_scale_v1::Event,
) {
- let wp_fractional_scale_v1::Event::PreferredScale(scale120) = event;
+ let wp_fractional_scale_v1::Event::PreferredScale(scale120) = event else { return };
let bar = state
.bars
.iter_mut()