diff --git a/cosmic-applet-audio/src/lib.rs b/cosmic-applet-audio/src/lib.rs index de515f23..9fe33ab6 100644 --- a/cosmic-applet-audio/src/lib.rs +++ b/cosmic-applet-audio/src/lib.rs @@ -646,7 +646,7 @@ impl cosmic::Application for Audio { .core .applet .icon_button(self.output_icon_name()) - .on_press(Message::TogglePopup); + .on_press_down(Message::TogglePopup); let btn = crate::mouse_area::MouseArea::new(btn).on_mouse_wheel(|delta| { let change = match delta { iced::mouse::ScrollDelta::Lines { x, y } => (x + y) * 5., diff --git a/cosmic-applet-battery/src/app.rs b/cosmic-applet-battery/src/app.rs index 084f7ae3..05074bd9 100644 --- a/cosmic-applet-battery/src/app.rs +++ b/cosmic-applet-battery/src/app.rs @@ -393,7 +393,7 @@ impl cosmic::Application for CosmicBatteryApplet { .core .applet .icon_button(&self.icon_name) - .on_press(Message::TogglePopup) + .on_press_down(Message::TogglePopup) .into(); if !self.gpus.is_empty() { diff --git a/cosmic-applet-bluetooth/src/app.rs b/cosmic-applet-bluetooth/src/app.rs index a65bf854..fe5a6daa 100644 --- a/cosmic-applet-bluetooth/src/app.rs +++ b/cosmic-applet-bluetooth/src/app.rs @@ -344,7 +344,7 @@ impl cosmic::Application for CosmicBluetoothApplet { self.core .applet .icon_button(&self.icon_name) - .on_press(Message::TogglePopup) + .on_press_down(Message::TogglePopup) .into() } diff --git a/cosmic-applet-input-sources/src/window.rs b/cosmic-applet-input-sources/src/window.rs index f7a6d970..a258064a 100644 --- a/cosmic-applet-input-sources/src/window.rs +++ b/cosmic-applet-input-sources/src/window.rs @@ -194,7 +194,7 @@ impl cosmic::Application for Window { .width(Length::Shrink) .height(Length::Shrink), ) - .on_press(Message::TogglePopup) + .on_press_down(Message::TogglePopup) .style(cosmic::theme::Button::AppletIcon) .into() } diff --git a/cosmic-applet-network/src/app.rs b/cosmic-applet-network/src/app.rs index bf9a1785..0e4cc284 100644 --- a/cosmic-applet-network/src/app.rs +++ b/cosmic-applet-network/src/app.rs @@ -543,7 +543,7 @@ impl cosmic::Application for CosmicNetworkApplet { self.core .applet .icon_button(&self.icon_name) - .on_press(Message::TogglePopup) + .on_press_down(Message::TogglePopup) .into() } diff --git a/cosmic-applet-notifications/src/lib.rs b/cosmic-applet-notifications/src/lib.rs index 8bfa8210..dac6c041 100644 --- a/cosmic-applet-notifications/src/lib.rs +++ b/cosmic-applet-notifications/src/lib.rs @@ -362,7 +362,7 @@ impl cosmic::Application for Notifications { self.core .applet .icon_button(&self.icon_name) - .on_press(Message::TogglePopup) + .on_press_down(Message::TogglePopup) .into() } diff --git a/cosmic-applet-power/src/lib.rs b/cosmic-applet-power/src/lib.rs index eee15ddf..e990460a 100644 --- a/cosmic-applet-power/src/lib.rs +++ b/cosmic-applet-power/src/lib.rs @@ -242,7 +242,7 @@ impl cosmic::Application for Power { self.core .applet .icon_button(&self.icon_name) - .on_press(Message::TogglePopup) + .on_press_down(Message::TogglePopup) .into() } diff --git a/cosmic-applet-tiling/src/window.rs b/cosmic-applet-tiling/src/window.rs index 388ef706..7d709c8f 100644 --- a/cosmic-applet-tiling/src/window.rs +++ b/cosmic-applet-tiling/src/window.rs @@ -275,7 +275,7 @@ impl cosmic::Application for Window { self.core .applet .icon_button(if self.autotiled { ON } else { OFF }) - .on_press(Message::TogglePopup) + .on_press_down(Message::TogglePopup) .into() } diff --git a/cosmic-applet-time/src/window.rs b/cosmic-applet-time/src/window.rs index cce0c1e5..20e1e7c1 100644 --- a/cosmic-applet-time/src/window.rs +++ b/cosmic-applet-time/src/window.rs @@ -423,7 +423,7 @@ impl cosmic::Application for Window { } else { [self.core.applet.suggested_padding(true), 0] }) - .on_press(Message::TogglePopup) + .on_press_down(Message::TogglePopup) .style(cosmic::theme::Button::AppletIcon); if let Some(tracker) = self.rectangle_tracker.as_ref() {