diff options
-rw-r--r-- | mate-panel/applet.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/mate-panel/applet.c b/mate-panel/applet.c index 51f64086..4d40180d 100644 --- a/mate-panel/applet.c +++ b/mate-panel/applet.c @@ -747,6 +747,15 @@ applet_button_press (GtkWidget *widget, GdkEventButton *event, AppletInfo *info) { + 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); + if (event->button == 3) return applet_do_popup_menu (widget, event, info); |