update deps
This commit is contained in:
@@ -25,11 +25,11 @@ xshm = ["dep:rxscreen"]
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
||||
ashpd = { version = "0.11.0", default-features = false, features = [
|
||||
ashpd = { version = "0.12.0", default-features = false, features = [
|
||||
"async-std",
|
||||
], optional = true }
|
||||
drm-fourcc = "2.2.0"
|
||||
idmap = "0.2.22"
|
||||
idmap = { workspace = true }
|
||||
libc = "0.2.175"
|
||||
log = { workspace = true }
|
||||
pipewire = { git = "https://gitlab.freedesktop.org/galister/pipewire-rs.git", ref = "ba32202c3c391004c3bb533b58fa75a50e47ff57", features = [
|
||||
@@ -41,7 +41,7 @@ rxscreen = { version = "0.1.7", features = [
|
||||
"xrandr",
|
||||
"mouse",
|
||||
], optional = true }
|
||||
smithay-client-toolkit = { version = "0.19.2", optional = true }
|
||||
smithay-client-toolkit = { version = "0.20.0", optional = true }
|
||||
wayland-client = { workspace = true, optional = true }
|
||||
wayland-protocols = { version = "0.32.9", features = [
|
||||
"wayland-client",
|
||||
|
||||
@@ -19,15 +19,15 @@ use smithay_client_toolkit::reexports::{
|
||||
|
||||
pub use wayland_client;
|
||||
use wayland_client::{
|
||||
Connection, Dispatch, EventQueue, Proxy, QueueHandle,
|
||||
backend::WaylandError,
|
||||
globals::{GlobalList, GlobalListContents, registry_queue_init},
|
||||
globals::{registry_queue_init, GlobalList, GlobalListContents},
|
||||
protocol::{
|
||||
wl_output::{self, Transform, WlOutput},
|
||||
wl_registry::{self, WlRegistry},
|
||||
wl_seat::WlSeat,
|
||||
wl_shm::WlShm,
|
||||
},
|
||||
Connection, Dispatch, EventQueue, Proxy, QueueHandle,
|
||||
};
|
||||
|
||||
use crate::frame;
|
||||
@@ -136,7 +136,7 @@ impl WlxClient {
|
||||
|
||||
pub fn get_desktop_origin(&self) -> (i32, i32) {
|
||||
let mut origin = (i32::MAX, i32::MAX);
|
||||
for output in self.outputs.values() {
|
||||
for (_, output) in self.outputs.iter() {
|
||||
origin.0 = origin.0.min(output.logical_pos.0);
|
||||
origin.1 = origin.1.min(output.logical_pos.1);
|
||||
}
|
||||
@@ -146,7 +146,7 @@ impl WlxClient {
|
||||
/// Get the logical width and height of the desktop.
|
||||
pub fn get_desktop_extent(&self) -> (i32, i32) {
|
||||
let mut extent = (0, 0);
|
||||
for output in self.outputs.values() {
|
||||
for (_, output) in self.outputs.iter() {
|
||||
extent.0 = extent.0.max(output.logical_pos.0 + output.logical_size.0);
|
||||
extent.1 = extent.1.max(output.logical_pos.1 + output.logical_size.1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user