diff options
author | ZenWalker <[email protected]> | 2016-11-29 23:22:17 +0100 |
---|---|---|
committer | ZenWalker <[email protected]> | 2016-11-29 23:22:17 +0100 |
commit | 515c20e85cfdc5beff9b4b8a072876114bc73e76 (patch) | |
tree | a4ebe5ade081a87b9673885a450d234d11e9cfb8 | |
parent | e0bef379c5ee30aaf369a6a493ba7ef94d376fcb (diff) | |
download | mate-panel-515c20e85cfdc5beff9b4b8a072876114bc73e76.tar.bz2 mate-panel-515c20e85cfdc5beff9b4b8a072876114bc73e76.tar.xz |
Fix: the panel does not display the icon on the mouse with dnd
Fixes #457
-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); |