File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -118,7 +118,8 @@ WfMenuMenuItem::WfMenuMenuItem(WayfireMenu *_menu, Glib::RefPtr<Gio::DesktopAppI
118118 menu_item->signal_activate ().connect (
119119 [this , action] ()
120120 {
121- m_app_info->launch_action (action);
121+ auto ctx = Gdk::Display::get_default ()->get_app_launch_context ();
122+ m_app_info->launch_action (action, ctx);
122123 menu->hide_menu ();
123124 });
124125 m_action_menu.append (*menu_item);
@@ -161,7 +162,8 @@ WfMenuMenuItem::WfMenuMenuItem(WayfireMenu *_menu, Glib::RefPtr<Gio::DesktopAppI
161162
162163void WfMenuMenuItem::on_click ()
163164{
164- m_app_info->launch (std::vector<Glib::RefPtr<Gio::File>>());
165+ auto ctx = Gdk::Display::get_default ()->get_app_launch_context ();
166+ m_app_info->launch (std::vector<Glib::RefPtr<Gio::File>>(), ctx);
165167 menu->hide_menu ();
166168}
167169
You can’t perform that action at this time.
0 commit comments