[Xfce4-commits] [xfce/xfdesktop] 02/03: Properly check if mouse button 3 is pressed
noreply at xfce.org
noreply at xfce.org
Mon Mar 2 14:25:05 CET 2015
This is an automated email from the git hooks/post-receive script.
eric pushed a commit to branch master
in repository xfce/xfdesktop.
commit bd7273f2a251d5225ddb3753c7c79206fe317b5f
Author: Thaddaeus Tintenfisch <thad.fisch at gmail.com>
Date: Sat Feb 21 21:48:28 2015 +0100
Properly check if mouse button 3 is pressed
Signed-off-by: Eric Koegel <eric.koegel at gmail.com>
---
src/xfdesktop-icon-view.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/xfdesktop-icon-view.c b/src/xfdesktop-icon-view.c
index 52991fe..1710898 100644
--- a/src/xfdesktop-icon-view.c
+++ b/src/xfdesktop-icon-view.c
@@ -1153,14 +1153,14 @@ xfdesktop_icon_view_maybe_begin_drag(XfdesktopIconView *icon_view,
actions = GDK_ACTION_MOVE | (icon_view->priv->drag_source_set ?
icon_view->priv->foreign_source_actions : 0);
- if(evt->state != GDK_BUTTON3_MASK) {
- gtk_drag_begin(GTK_WIDGET(icon_view),
- icon_view->priv->source_targets,
- actions, 1, (GdkEvent *)evt);
+ if(!(evt->state & GDK_BUTTON3_MASK)) {
+ gtk_drag_begin(GTK_WIDGET(icon_view),
+ icon_view->priv->source_targets,
+ actions, 1, (GdkEvent *)evt);
} else {
gtk_drag_begin(GTK_WIDGET(icon_view),
- icon_view->priv->source_targets,
- actions | GDK_ACTION_ASK, 3, (GdkEvent *)evt);
+ icon_view->priv->source_targets,
+ actions | GDK_ACTION_ASK, 3, (GdkEvent *)evt);
}
DBG("DRAG BEGIN!");
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list