Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/panel/widgets/menu/item.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,12 @@ WfMenuItem::WfMenuItem(WayfireMenu *_menu, Glib::RefPtr<Gio::DesktopAppInfo> app
list_item.append(label);
button.set_child(list_item);

list_item.add_controller(left_click_g);
// GtkButton consumes the primary click itself (GTK 4.18), so a click gesture on its
// child never fires: launch from the button's own clicked signal instead.
signals.push_back(button.signal_clicked().connect([=] ()
{
on_click();
}));
list_item.add_controller(right_click_g);
list_item.add_controller(long_press_g);

Expand Down
Loading