1
0
Fork 0
mirror of https://github.com/Zedfrigg/ironbar.git synced 2025-07-01 02:31:04 +02:00

fix(tray): cannot activate menu options with right click

Fixes #513
This commit is contained in:
Jake Stanger 2024-03-29 13:07:55 +00:00
parent b48ba4c345
commit 30b11db435
No known key found for this signature in database
GPG key ID: C51FC8F9CB0BEA61

View file

@ -1,5 +1,6 @@
use super::diff::{Diff, MenuItemDiff};
use crate::{spawn, try_send};
use glib::Propagation;
use gtk::prelude::*;
use gtk::{CheckMenuItem, Image, Label, Menu, MenuItem, SeparatorMenuItem};
use std::collections::HashMap;
@ -251,8 +252,9 @@ impl TrayMenuItem {
let tx = tx.clone();
let id = info.id;
widget.connect_activate(move |_item| {
widget.connect_button_press_event(move |_item, _button| {
try_send!(tx, id);
Propagation::Proceed
});
}