Skip to content

Commit 6726873

Browse files
committed
fix build
1 parent c77265e commit 6726873

File tree

10 files changed

+43
-74
lines changed

10 files changed

+43
-74
lines changed

Cargo.lock

Lines changed: 25 additions & 53 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ resolver="2"
2020
[workspace.dependencies]
2121
cctk = { git = "https://github.com/pop-os/cosmic-protocols", package = "cosmic-client-toolkit", rev = "e39748e" }
2222
cosmic-protocols = { git = "https://github.com/pop-os/cosmic-protocols", default-features = false, features = ["client"], rev = "e39748e" }
23-
cosmic-time = { git = "https://github.com/pop-os/cosmic-time", rev = "39c96ac", default-features = false, features = ["libcosmic", "once_cell"] }
23+
cosmic-time = { git = "https://github.com/pop-os/cosmic-time", rev = "c39e737", default-features = false, features = ["libcosmic", "once_cell"] }
2424
libcosmic = { git = "https://github.com/pop-os/libcosmic", default-features = false, features = ["tokio", "wayland"] }
2525

2626
[profile.release]

cosmic-app-list/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ futures-util = "0.3"
1616
once_cell = "1.9"
1717
xdg = "2.4"
1818
pretty_env_logger = "0.5"
19-
calloop = "0.10"
2019
nix = "0.26"
2120
shlex = "1.1.0"
2221
anyhow = "1.0"

cosmic-app-list/src/app.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use crate::fl;
55
use crate::toplevel_subscription::toplevel_subscription;
66
use crate::toplevel_subscription::ToplevelRequest;
77
use crate::toplevel_subscription::ToplevelUpdate;
8-
use calloop::channel::Sender;
8+
use cctk::sctk::reexports::calloop::channel::Sender;
99
use cctk::toplevel_info::ToplevelInfo;
1010
use cctk::wayland_client::protocol::wl_data_device_manager::DndAction;
1111
use cctk::wayland_client::protocol::wl_seat::WlSeat;

cosmic-app-list/src/toplevel_handler.rs

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@ use crate::toplevel_subscription::{ToplevelRequest, ToplevelUpdate};
22
use cctk::{
33
sctk::{
44
self,
5-
reexports::client::{protocol::wl_seat::WlSeat, WaylandSource},
5+
reexports::{
6+
calloop,
7+
client::{protocol::wl_seat::WlSeat, WaylandSource},
8+
},
69
seat::{SeatHandler, SeatState},
710
},
811
toplevel_info::{ToplevelInfoHandler, ToplevelInfoState},
@@ -131,13 +134,9 @@ pub(crate) fn toplevel_handler(
131134
let qh = event_queue.handle();
132135
let wayland_source = WaylandSource::new(event_queue).unwrap();
133136
let handle = event_loop.handle();
134-
135-
if handle
136-
.insert_source(wayland_source, |_, q, state| q.dispatch_pending(state))
137-
.is_err()
138-
{
139-
return;
140-
};
137+
wayland_source
138+
.insert(handle.clone())
139+
.expect("Failed to insert wayland source.");
141140

142141
if handle
143142
.insert_source(rx, |event, _, state| match event {

cosmic-app-list/src/toplevel_subscription.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//!
33
//! This code was generated by `zbus-xmlgen` `2.0.1` from DBus introspection data.
44
//! Source: `Interface '/org/freedesktop/UPower/KbdBacklight' from service 'org.freedesktop.UPower' on system bus`.
5-
use cctk::sctk::reexports::client::protocol::wl_seat::WlSeat;
5+
use cctk::sctk::reexports::{calloop, client::protocol::wl_seat::WlSeat};
66
use cctk::toplevel_info::ToplevelInfo;
77
use cosmic::iced;
88
use cosmic::iced::subscription;

cosmic-applet-workspaces/Cargo.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@ libcosmic.workspace = true
99
cosmic-applet = { path = "../applet" }
1010
cctk.workspace = true
1111
cosmic-protocols.workspace = true
12-
wayland-backend = {version = "0.1.0", features = ["client_system"]}
13-
wayland-client = {version = "0.30.0"}
14-
calloop = "0.10.1"
1512
nix = "0.26.1"
1613
log = "0.4"
1714
pretty_env_logger = "0.5"

cosmic-applet-workspaces/src/components/app.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use calloop::channel::SyncSender;
1+
use cctk::sctk::reexports::{calloop::channel::SyncSender, client::backend::ObjectId};
22
use cosmic::iced::alignment::{Horizontal, Vertical};
33
use cosmic::iced::mouse::{self, ScrollDelta};
44
use cosmic::iced::wayland::actions::window::SctkWindowSettings;
@@ -16,7 +16,6 @@ use cosmic_applet::cosmic_panel_config::PanelAnchor;
1616
use cosmic_applet::CosmicAppletHelper;
1717
use cosmic_protocols::workspace::v1::client::zcosmic_workspace_handle_v1;
1818
use std::cmp::Ordering;
19-
use wayland_backend::client::ObjectId;
2019

2120
use crate::config;
2221
use crate::wayland::{WorkspaceEvent, WorkspaceList};

cosmic-applet-workspaces/src/wayland.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,22 @@ use cctk::{
33
sctk::{
44
self,
55
output::{OutputHandler, OutputState},
6-
reexports::client::WaylandSource,
6+
reexports::{
7+
calloop,
8+
client::{self as wayland_client},
9+
},
710
registry::{ProvidesRegistryState, RegistryState},
811
},
912
workspace::{WorkspaceHandler, WorkspaceState},
1013
};
1114
use cosmic_protocols::workspace::v1::client::zcosmic_workspace_handle_v1;
1215
use futures::{channel::mpsc, executor::block_on, SinkExt};
1316
use std::{env, os::unix::net::UnixStream, path::PathBuf, time::Duration};
14-
use wayland_backend::client::ObjectId;
17+
use wayland_client::backend::ObjectId;
1518
use wayland_client::{
1619
globals::registry_queue_init,
1720
protocol::wl_output::{self, WlOutput},
18-
ConnectError, Proxy,
21+
ConnectError, Proxy, WaylandSource,
1922
};
2023
use wayland_client::{Connection, QueueHandle, WEnum};
2124

cosmic-applet-workspaces/src/wayland_subscription.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use crate::wayland::{self, WorkspaceEvent, WorkspaceList};
2-
use calloop::channel::SyncSender;
2+
use cctk::sctk::reexports::calloop::channel::SyncSender;
33
use cosmic::iced::{
44
self,
55
futures::{channel::mpsc, SinkExt, StreamExt},

0 commit comments

Comments
 (0)