From 72f7f71dfcb084b4825cf18d63558058584dc949 Mon Sep 17 00:00:00 2001 From: ZenWalker Date: Tue, 29 Nov 2016 23:22:17 +0100 Subject: [GTK+3] fix showing icon at mouse cursor on launcher d-n-d Fixes #457 --- mate-panel/applet.c | 11 +++++++++++ 1 file changed, 11 insertions(+) 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); -- cgit v1.2.1