Skip to content

Commit

Permalink
fix: make overflow button and status area buttons popup on press down…
Browse files Browse the repository at this point in the history
… instead of on press

leftovers from #568
  • Loading branch information
lazytanuki committed Aug 15, 2024
1 parent bd5ac8a commit ef7aaf4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cosmic-applet-minimize/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ impl cosmic::Application for Minimize {
.core
.applet
.icon_button(icon)
.on_press(Message::OpenOverflowPopup);
.on_press_down(Message::OpenOverflowPopup);

Some(btn.into())
} else {
Expand Down
2 changes: 1 addition & 1 deletion cosmic-applet-status-area/src/components/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ impl cosmic::Application for App {
.icon_button_from_handle(icon.clone().symbolic(true)),
_ => self.core.applet.icon_button(menu.icon_name()),
}
.on_press(Msg::TogglePopup(*id)),
.on_press_down(Msg::TogglePopup(*id)),
)
.on_mouse_enter(Msg::Hovered(*id))
.into()
Expand Down

0 comments on commit ef7aaf4

Please sign in to comment.