diff --git a/Cargo.lock b/Cargo.lock index f686e916..03fe54d9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -651,7 +651,7 @@ dependencies = [ [[package]] name = "build_helpers" version = "0.14.0" -source = "git+https://github.com/pop-os/libcosmic#d4d71fd53e5ed6bd3a430089114dffa2da3cd498" +source = "git+https://github.com/pop-os/libcosmic#a401af8b1c54a8abd393b8c5b7c8809402f83850" dependencies = [ "cfg_aliases", ] @@ -1304,7 +1304,7 @@ dependencies = [ [[package]] name = "cosmic-config" version = "1.0.0" -source = "git+https://github.com/pop-os/libcosmic#d4d71fd53e5ed6bd3a430089114dffa2da3cd498" +source = "git+https://github.com/pop-os/libcosmic#a401af8b1c54a8abd393b8c5b7c8809402f83850" dependencies = [ "atomicwrites", "cosmic-config-derive", @@ -1325,7 +1325,7 @@ dependencies = [ [[package]] name = "cosmic-config-derive" version = "1.0.0" -source = "git+https://github.com/pop-os/libcosmic#d4d71fd53e5ed6bd3a430089114dffa2da3cd498" +source = "git+https://github.com/pop-os/libcosmic#a401af8b1c54a8abd393b8c5b7c8809402f83850" dependencies = [ "quote", "syn", @@ -1392,7 +1392,7 @@ dependencies = [ [[package]] name = "cosmic-panel-config" version = "0.1.0" -source = "git+https://github.com/pop-os/cosmic-panel#f664a34c788f09689be9efa88e41040d7e6361f1" +source = "git+https://github.com/pop-os/cosmic-panel#e6e6442d762291beeb908bb7dd8a2cefff8eb7d3" dependencies = [ "anyhow", "cosmic-config", @@ -1546,7 +1546,7 @@ dependencies = [ [[package]] name = "cosmic-theme" version = "1.0.0" -source = "git+https://github.com/pop-os/libcosmic#d4d71fd53e5ed6bd3a430089114dffa2da3cd498" +source = "git+https://github.com/pop-os/libcosmic#a401af8b1c54a8abd393b8c5b7c8809402f83850" dependencies = [ "almost", "configparser", @@ -2880,7 +2880,7 @@ dependencies = [ [[package]] name = "iced" version = "0.14.0" -source = "git+https://github.com/pop-os/libcosmic#d4d71fd53e5ed6bd3a430089114dffa2da3cd498" +source = "git+https://github.com/pop-os/libcosmic#a401af8b1c54a8abd393b8c5b7c8809402f83850" dependencies = [ "build_helpers", "dnd", @@ -2902,7 +2902,7 @@ dependencies = [ [[package]] name = "iced_accessibility" version = "0.1.0" -source = "git+https://github.com/pop-os/libcosmic#d4d71fd53e5ed6bd3a430089114dffa2da3cd498" +source = "git+https://github.com/pop-os/libcosmic#a401af8b1c54a8abd393b8c5b7c8809402f83850" dependencies = [ "accesskit", "accesskit_winit", @@ -2911,7 +2911,7 @@ dependencies = [ [[package]] name = "iced_core" version = "0.14.0" -source = "git+https://github.com/pop-os/libcosmic#d4d71fd53e5ed6bd3a430089114dffa2da3cd498" +source = "git+https://github.com/pop-os/libcosmic#a401af8b1c54a8abd393b8c5b7c8809402f83850" dependencies = [ "bitflags 2.13.0", "build_helpers", @@ -2937,7 +2937,7 @@ dependencies = [ [[package]] name = "iced_debug" version = "0.14.0" -source = "git+https://github.com/pop-os/libcosmic#d4d71fd53e5ed6bd3a430089114dffa2da3cd498" +source = "git+https://github.com/pop-os/libcosmic#a401af8b1c54a8abd393b8c5b7c8809402f83850" dependencies = [ "iced_core", "iced_futures", @@ -2947,7 +2947,7 @@ dependencies = [ [[package]] name = "iced_futures" version = "0.14.0" -source = "git+https://github.com/pop-os/libcosmic#d4d71fd53e5ed6bd3a430089114dffa2da3cd498" +source = "git+https://github.com/pop-os/libcosmic#a401af8b1c54a8abd393b8c5b7c8809402f83850" dependencies = [ "futures", "iced_core", @@ -2961,7 +2961,7 @@ dependencies = [ [[package]] name = "iced_graphics" version = "0.14.0" -source = "git+https://github.com/pop-os/libcosmic#d4d71fd53e5ed6bd3a430089114dffa2da3cd498" +source = "git+https://github.com/pop-os/libcosmic#a401af8b1c54a8abd393b8c5b7c8809402f83850" dependencies = [ "bitflags 2.13.0", "bytemuck", @@ -2982,7 +2982,7 @@ dependencies = [ [[package]] name = "iced_program" version = "0.14.0" -source = "git+https://github.com/pop-os/libcosmic#d4d71fd53e5ed6bd3a430089114dffa2da3cd498" +source = "git+https://github.com/pop-os/libcosmic#a401af8b1c54a8abd393b8c5b7c8809402f83850" dependencies = [ "iced_graphics", "iced_runtime", @@ -2991,7 +2991,7 @@ dependencies = [ [[package]] name = "iced_renderer" version = "0.14.0" -source = "git+https://github.com/pop-os/libcosmic#d4d71fd53e5ed6bd3a430089114dffa2da3cd498" +source = "git+https://github.com/pop-os/libcosmic#a401af8b1c54a8abd393b8c5b7c8809402f83850" dependencies = [ "iced_graphics", "iced_tiny_skia", @@ -3003,7 +3003,7 @@ dependencies = [ [[package]] name = "iced_runtime" version = "0.14.0" -source = "git+https://github.com/pop-os/libcosmic#d4d71fd53e5ed6bd3a430089114dffa2da3cd498" +source = "git+https://github.com/pop-os/libcosmic#a401af8b1c54a8abd393b8c5b7c8809402f83850" dependencies = [ "build_helpers", "bytes", @@ -3019,7 +3019,7 @@ dependencies = [ [[package]] name = "iced_tiny_skia" version = "0.14.0" -source = "git+https://github.com/pop-os/libcosmic#d4d71fd53e5ed6bd3a430089114dffa2da3cd498" +source = "git+https://github.com/pop-os/libcosmic#a401af8b1c54a8abd393b8c5b7c8809402f83850" dependencies = [ "bytemuck", "cosmic-text", @@ -3036,7 +3036,7 @@ dependencies = [ [[package]] name = "iced_wgpu" version = "0.14.0" -source = "git+https://github.com/pop-os/libcosmic#d4d71fd53e5ed6bd3a430089114dffa2da3cd498" +source = "git+https://github.com/pop-os/libcosmic#a401af8b1c54a8abd393b8c5b7c8809402f83850" dependencies = [ "as-raw-xcb-connection", "bitflags 2.13.0", @@ -3068,7 +3068,7 @@ dependencies = [ [[package]] name = "iced_widget" version = "0.14.2" -source = "git+https://github.com/pop-os/libcosmic#d4d71fd53e5ed6bd3a430089114dffa2da3cd498" +source = "git+https://github.com/pop-os/libcosmic#a401af8b1c54a8abd393b8c5b7c8809402f83850" dependencies = [ "build_helpers", "cosmic-client-toolkit", @@ -3087,7 +3087,7 @@ dependencies = [ [[package]] name = "iced_winit" version = "0.14.0" -source = "git+https://github.com/pop-os/libcosmic#d4d71fd53e5ed6bd3a430089114dffa2da3cd498" +source = "git+https://github.com/pop-os/libcosmic#a401af8b1c54a8abd393b8c5b7c8809402f83850" dependencies = [ "build_helpers", "cosmic-client-toolkit", @@ -3915,7 +3915,7 @@ checksum = "68ab91017fe16c622486840e4c83c9a37afeff978bd239b5293d61ece587de66" [[package]] name = "libcosmic" version = "1.0.0" -source = "git+https://github.com/pop-os/libcosmic#d4d71fd53e5ed6bd3a430089114dffa2da3cd498" +source = "git+https://github.com/pop-os/libcosmic#a401af8b1c54a8abd393b8c5b7c8809402f83850" dependencies = [ "apply", "ashpd 0.12.3", @@ -3955,6 +3955,7 @@ dependencies = [ "phf 0.13.1", "rfd", "ron 0.12.2", + "roxmltree", "rust-embed", "rustix 1.1.4", "serde", @@ -7901,7 +7902,7 @@ checksum = "2fb433233f2df9344722454bc7e96465c9d03bff9d77c248f9e7523fe79585b5" [[package]] name = "xdg-shell-wrapper-config" version = "0.1.0" -source = "git+https://github.com/pop-os/cosmic-panel#f664a34c788f09689be9efa88e41040d7e6361f1" +source = "git+https://github.com/pop-os/cosmic-panel#e6e6442d762291beeb908bb7dd8a2cefff8eb7d3" dependencies = [ "serde", "wayland-protocols-wlr", diff --git a/cosmic-app-list/src/app.rs b/cosmic-app-list/src/app.rs index 8db96ee3..3e5a3a6d 100755 --- a/cosmic-app-list/src/app.rs +++ b/cosmic-app-list/src/app.rs @@ -420,7 +420,7 @@ enum Message { ConfigUpdated(AppListConfig), OpenFavorites, OpenActive, - Surface(surface::Action), + Surface(surface::Action), } fn index_in_list( @@ -1745,9 +1745,7 @@ impl cosmic::Application for CosmicAppList { } } Message::Surface(a) => { - return cosmic::task::message(cosmic::Action::Cosmic( - cosmic::app::Action::Surface(a), - )); + return cosmic::task::message(cosmic::Action::Surface(a)); } } diff --git a/cosmic-applet-a11y/src/app.rs b/cosmic-applet-a11y/src/app.rs index d03c087d..7414349b 100644 --- a/cosmic-applet-a11y/src/app.rs +++ b/cosmic-applet-a11y/src/app.rs @@ -64,7 +64,7 @@ enum Message { OpenSettings, DBusUpdate(accessibility::Response), WaylandUpdate(WaylandUpdate), - Surface(surface::Action), + Surface(surface::Action), } impl cosmic::Application for CosmicA11yApplet { @@ -288,9 +288,7 @@ impl cosmic::Application for CosmicA11yApplet { } }, Message::Surface(a) => { - return cosmic::task::message(cosmic::Action::Cosmic( - cosmic::app::Action::Surface(a), - )); + return cosmic::task::message(cosmic::Action::Surface(a)); } } Task::none() diff --git a/cosmic-applet-audio/src/lib.rs b/cosmic-applet-audio/src/lib.rs index 38b93e1e..a24b5ffe 100644 --- a/cosmic-applet-audio/src/lib.rs +++ b/cosmic-applet-audio/src/lib.rs @@ -149,7 +149,7 @@ pub enum Message { SetSinkVolume(u32), SetSourceVolume(u32), Subscription(audio_client::Event), - Surface(surface::Action), + Surface(surface::Action), ToggleMediaControlsInTopPanel(bool), TogglePopup, ToggleSinkMute, @@ -542,9 +542,7 @@ impl cosmic::Application for Audio { } }, Message::Surface(a) => { - return cosmic::task::message(cosmic::Action::Cosmic( - cosmic::app::Action::Surface(a), - )); + return cosmic::task::message(cosmic::Action::Surface(a)); } Message::Client(client) => { if let Some(client) = Arc::into_inner(client) { diff --git a/cosmic-applet-battery/src/app.rs b/cosmic-applet-battery/src/app.rs index f5113eff..85cb8c64 100644 --- a/cosmic-applet-battery/src/app.rs +++ b/cosmic-applet-battery/src/app.rs @@ -212,7 +212,7 @@ enum Message { OpenSettings, SettingsDaemon(settings_daemon::Event), ZbusConnection(zbus::Result), - Surface(surface::Action), + Surface(surface::Action), } impl cosmic::Application for CosmicBatteryApplet { @@ -525,9 +525,7 @@ impl cosmic::Application for CosmicBatteryApplet { } }, Message::Surface(a) => { - return cosmic::task::message(cosmic::Action::Cosmic( - cosmic::app::Action::Surface(a), - )); + return cosmic::task::message(cosmic::Action::Surface(a)); } } Task::none() diff --git a/cosmic-applet-bluetooth/src/app.rs b/cosmic-applet-bluetooth/src/app.rs index a3bba4c3..7bb799ea 100644 --- a/cosmic-applet-bluetooth/src/app.rs +++ b/cosmic-applet-bluetooth/src/app.rs @@ -75,7 +75,7 @@ enum Message { Token(TokenUpdate), OpenSettings, ToggleBluetooth(bool), - Surface(surface::Action), + Surface(surface::Action), } impl cosmic::Application for CosmicBluetoothApplet { @@ -303,9 +303,7 @@ impl cosmic::Application for CosmicBluetoothApplet { } } Message::Surface(a) => { - return cosmic::task::message(cosmic::Action::Cosmic( - cosmic::app::Action::Surface(a), - )); + return cosmic::task::message(cosmic::Action::Surface(a)); } } self.update_icon(); diff --git a/cosmic-applet-input-sources/src/lib.rs b/cosmic-applet-input-sources/src/lib.rs index 3109c888..d22d3e7b 100644 --- a/cosmic-applet-input-sources/src/lib.rs +++ b/cosmic-applet-input-sources/src/lib.rs @@ -98,7 +98,7 @@ pub enum Message { CompConfig(Box), SetActiveLayout(usize), KeyboardSettings, - Surface(surface::Action), + Surface(surface::Action), Rectangle(RectangleUpdate), WaylandConnection(Backend), Wayland(wayland::Event), @@ -190,9 +190,7 @@ impl cosmic::Application for Window { } } Message::Surface(a) => { - return cosmic::task::message(cosmic::Action::Cosmic( - cosmic::app::Action::Surface(a), - )); + return cosmic::task::message(cosmic::Action::Surface(a)); } Message::Rectangle(u) => match u { RectangleUpdate::Rectangle(r) => { diff --git a/cosmic-applet-minimize/src/lib.rs b/cosmic-applet-minimize/src/lib.rs index 803ca97c..e58b6d02 100644 --- a/cosmic-applet-minimize/src/lib.rs +++ b/cosmic-applet-minimize/src/lib.rs @@ -126,7 +126,7 @@ enum Message { Closed(window::Id), OpenOverflowPopup, CloseOverflowPopup, - Surface(surface::Action), + Surface(surface::Action), } impl cosmic::Application for Minimize { @@ -294,9 +294,7 @@ impl cosmic::Application for Minimize { } Message::CloseOverflowPopup => todo!(), Message::Surface(a) => { - return cosmic::task::message(cosmic::Action::Cosmic( - cosmic::app::Action::Surface(a), - )); + return cosmic::task::message(cosmic::Action::Surface(a)); } } Task::none() diff --git a/cosmic-applet-network/src/app.rs b/cosmic-applet-network/src/app.rs index 913712ca..b9baa109 100644 --- a/cosmic-applet-network/src/app.rs +++ b/cosmic-applet-network/src/app.rs @@ -1028,7 +1028,7 @@ pub(crate) enum Message { FocusSecureInput, NoOp, #[allow(dead_code)] // required by `cosmic::applet` surface path; not always emitted - Surface(surface::Action), + Surface(surface::Action), ActivateVpn(Arc), // UUID of VPN to activate DeactivateVpn(Arc), // UUID of VPN to deactivate VpnOperationFinished { @@ -1294,9 +1294,7 @@ impl cosmic::Application for CosmicNetworkApplet { return Task::batch(vec![forget_task, reconnect_task]); } Message::Surface(a) => { - return cosmic::task::message(cosmic::Action::Cosmic( - cosmic::app::Action::Surface(a), - )); + return cosmic::task::message(cosmic::Action::Surface(a)); } Message::ActivateVpn(uuid) => { self.nm_state.pending_vpn = Some(PendingVpn { diff --git a/cosmic-applet-notifications/src/lib.rs b/cosmic-applet-notifications/src/lib.rs index 720f8d63..4041d486 100644 --- a/cosmic-applet-notifications/src/lib.rs +++ b/cosmic-applet-notifications/src/lib.rs @@ -78,7 +78,7 @@ enum Message { CardsToggled(String, bool), Token(TokenUpdate), OpenSettings, - Surface(surface::Action), + Surface(surface::Action), } impl cosmic::Application for Notifications { @@ -367,9 +367,7 @@ impl cosmic::Application for Notifications { } } Message::Surface(a) => { - return cosmic::task::message(cosmic::Action::Cosmic( - cosmic::app::Action::Surface(a), - )); + return cosmic::task::message(cosmic::Action::Surface(a)); } } self.update_icon(); diff --git a/cosmic-applet-power/src/lib.rs b/cosmic-applet-power/src/lib.rs index 3bdfbb13..c75d3e03 100644 --- a/cosmic-applet-power/src/lib.rs +++ b/cosmic-applet-power/src/lib.rs @@ -82,7 +82,7 @@ enum Message { Zbus(Result<(), zbus::Error>), Closed(window::Id), Token(TokenUpdate), - Surface(surface::Action), + Surface(surface::Action), } impl cosmic::Application for Power { @@ -202,9 +202,7 @@ impl cosmic::Application for Power { } }, Message::Surface(a) => { - return cosmic::task::message(cosmic::Action::Cosmic( - cosmic::app::Action::Surface(a), - )); + return cosmic::task::message(cosmic::Action::Surface(a)); } } Task::none() diff --git a/cosmic-applet-status-area/src/components/app.rs b/cosmic-applet-status-area/src/components/app.rs index 3f458126..18551a02 100644 --- a/cosmic-applet-status-area/src/components/app.rs +++ b/cosmic-applet-status-area/src/components/app.rs @@ -38,7 +38,7 @@ pub enum Msg { TogglePopup(usize), Hovered(Option), WheelScrolled(ScrollDelta), - Surface(surface::Action), + Surface(surface::Action), ToggleOverflow, HoveredOverflow, Token(TokenUpdate), @@ -408,9 +408,7 @@ impl cosmic::Application for App { scroll(id, menu.item.item_proxy().clone(), delta, orientation) } Msg::Surface(a) => { - return cosmic::task::message(cosmic::Action::Cosmic( - cosmic::app::Action::Surface(a), - )); + return cosmic::task::message(cosmic::Action::Surface(a)); } Msg::ToggleOverflow => { if let Some(popup_id) = self.overflow_popup.take() { diff --git a/cosmic-applet-tiling/src/window.rs b/cosmic-applet-tiling/src/window.rs index d4090541..e6534270 100644 --- a/cosmic-applet-tiling/src/window.rs +++ b/cosmic-applet-tiling/src/window.rs @@ -55,7 +55,7 @@ pub enum Message { WorkspaceUpdate(WorkspacesUpdate), NewWorkspace(Entity), OpenSettings, - Surface(surface::Action), + Surface(surface::Action), } impl cosmic::Application for Window { @@ -234,9 +234,7 @@ impl cosmic::Application for Window { tokio::spawn(cosmic::process::spawn(cmd)); } Message::Surface(a) => { - return cosmic::task::message(cosmic::Action::Cosmic( - cosmic::app::Action::Surface(a), - )); + return cosmic::task::message(cosmic::Action::Surface(a)); } } Task::none() diff --git a/cosmic-applet-time/src/window.rs b/cosmic-applet-time/src/window.rs index 042dfc3d..a96b447f 100644 --- a/cosmic-applet-time/src/window.rs +++ b/cosmic-applet-time/src/window.rs @@ -106,7 +106,7 @@ pub enum Message { Token(TokenUpdate), ConfigChanged(TimeAppletConfig), TimezoneUpdate(String), - Surface(surface::Action), + Surface(surface::Action), } impl Window { @@ -673,9 +673,7 @@ impl cosmic::Application for Window { self.update(Message::Tick) } Message::Surface(a) => { - return cosmic::task::message(cosmic::Action::Cosmic( - cosmic::app::Action::Surface(a), - )); + return cosmic::task::message(cosmic::Action::Surface(a)); } } } diff --git a/cosmic-applet-workspaces/src/components/app.rs b/cosmic-applet-workspaces/src/components/app.rs index 62680f77..554bfa5b 100644 --- a/cosmic-applet-workspaces/src/components/app.rs +++ b/cosmic-applet-workspaces/src/components/app.rs @@ -89,7 +89,7 @@ enum Message { WorkspacePressed(ExtWorkspaceHandleV1), WheelScrolled(ScrollDelta), WorkspaceOverview, - Surface(surface::Action), + Surface(surface::Action), } impl cosmic::Application for IcedWorkspacesApplet { @@ -166,9 +166,7 @@ impl cosmic::Application for IcedWorkspacesApplet { let _ = ShellCommand::new("cosmic-workspaces").spawn(); } Message::Surface(a) => { - return cosmic::task::message(cosmic::Action::Cosmic( - cosmic::app::Action::Surface(a), - )); + return cosmic::task::message(cosmic::Action::Surface(a)); } } Task::none() diff --git a/cosmic-panel-button/src/lib.rs b/cosmic-panel-button/src/lib.rs index fe411f82..68c55af0 100644 --- a/cosmic-panel-button/src/lib.rs +++ b/cosmic-panel-button/src/lib.rs @@ -39,7 +39,7 @@ struct Button { enum Msg { Press, ConfigUpdated(CosmicPanelButtonConfig), - Surface(surface::Action), + Surface(surface::Action), } impl Button { @@ -141,9 +141,7 @@ impl cosmic::Application for Button { .unwrap_or_default(); } Msg::Surface(a) => { - return cosmic::task::message(cosmic::Action::Cosmic( - cosmic::app::Action::Surface(a), - )); + return cosmic::task::message(cosmic::Action::Surface(a)); } } Task::none()