Skip to content

Commit

Permalink
fix(tray): cannot activate with mixed left/right click
Browse files Browse the repository at this point in the history
Fixes #513
  • Loading branch information
JakeStanger committed Nov 5, 2024
1 parent 81c48fe commit e53a906
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/modules/tray/interface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -276,8 +276,9 @@ impl TrayMenuItem {
let tx = tx.clone();
let id = info.id;

widget.connect_activate(move |_item| {
widget.connect_button_press_event(move |_item, _event| {
try_send!(tx, id);
Propagation::Proceed
});
}

Expand Down

0 comments on commit e53a906

Please sign in to comment.