Skip to content
Permalink
Browse files

Fix GdkSeat warning

Workaround a possible GTK issue
  • Loading branch information...
lukefromdc committed Nov 1, 2018
1 parent 105f685 commit 576488685ee8b2775f4e556c0cdc7bfda2595dd4
Showing with 7 additions and 0 deletions.
  1. +7 −0 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);
}

0 comments on commit 5764886

Please sign in to comment.
You can’t perform that action at this time.