diff options
-rw-r--r-- | mate-panel/applet.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/mate-panel/applet.c b/mate-panel/applet.c index c8b1c95b..96779810 100644 --- a/mate-panel/applet.c +++ b/mate-panel/applet.c @@ -760,6 +760,17 @@ applet_button_press (GtkWidget *widget, GdkEventButton *event, AppletInfo *info) { +#if GTK_CHECK_VERSION (3, 0, 0) + gboolean applet_locked; + PanelWidget *panel_widget; + + panel_widget = mate_panel_applet_get_panel_widget (info); + applet_locked = panel_widget_get_applet_locked (panel_widget, + info->widget); + + if (!applet_locked) mate_panel_applet_set_dnd_enabled (info, TRUE); +#endif + if (event->button == 3) return applet_do_popup_menu (widget, event, info); |