summaryrefslogtreecommitdiff
path: root/mate-panel/panel-action-protocol.c
diff options
context:
space:
mode:
authorlukefromdc <[email protected]>2018-11-01 16:48:18 -0400
committerlukefromdc <[email protected]>2018-11-01 23:21:26 -0400
commit576488685ee8b2775f4e556c0cdc7bfda2595dd4 (patch)
treee410c2adce5e50d58845a3b57344d7e5d16e78e2 /mate-panel/panel-action-protocol.c
parent105f685f3c11a6096f6396f9282ce8eb8ecf7920 (diff)
downloadmate-panel-576488685ee8b2775f4e556c0cdc7bfda2595dd4.tar.bz2
mate-panel-576488685ee8b2775f4e556c0cdc7bfda2595dd4.tar.xz
Fix GdkSeat warning
Workaround a possible GTK issue
Diffstat (limited to 'mate-panel/panel-action-protocol.c')
-rw-r--r--mate-panel/panel-action-protocol.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/mate-panel/panel-action-protocol.c b/mate-panel/panel-action-protocol.c
index 3951e63c..60af7499 100644
--- a/mate-panel/panel-action-protocol.c
+++ b/mate-panel/panel-action-protocol.c
@@ -58,6 +58,8 @@ panel_action_protocol_main_menu (GdkScreen *screen,
GdkVisual *visual;
GtkWidget *toplevel;
GtkStyleContext *context;
+ GdkSeat *seat;
+ GdkDevice *device;
info = mate_panel_applet_get_by_type (PANEL_OBJECT_MENU_BAR, screen);
if (info) {
@@ -88,6 +90,11 @@ panel_action_protocol_main_menu (GdkScreen *screen,
context = gtk_widget_get_style_context (GTK_WIDGET(toplevel));
gtk_style_context_add_class(context,"gnome-panel-menu-bar");
gtk_style_context_add_class(context,"mate-panel-menu-bar");
+
+ seat = gdk_display_get_default_seat (gdk_display_get_default());
+ device = gdk_seat_get_pointer (seat);
+ gdk_event_set_device (event, device);
+
gtk_menu_popup_at_pointer (GTK_MENU (menu),event);
}