From ef566eb8966aeeda9f1da023ae33c8f1a1999ac7 Mon Sep 17 00:00:00 2001 Message-Id: From: Mark Wooding Date: Fri, 4 Jun 2010 18:39:32 +0100 Subject: [PATCH] Fix modifier key handling in Disobedience drag+drop logic. Organization: Straylight/Edgeware From: Richard Kettlewell --- disobedience/multidrag.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/disobedience/multidrag.c b/disobedience/multidrag.c index 8b28c94..f4a5a76 100644 --- a/disobedience/multidrag.c +++ b/disobedience/multidrag.c @@ -92,8 +92,9 @@ static gboolean multidrag_button_press_event(GtkWidget *w, /* We are only interested in left-button behavior */ if(event->button != 1) return FALSE; - /* We are only interested in unmodified clicks (not SHIFT etc) */ - if(event->state & GDK_MODIFIER_MASK) + /* We are only uninterested in clicks without CTRL or SHIFT. GTK ignores the + * other possible modifiers, so we do too. */ + if(event->state & (GDK_SHIFT_MASK|GDK_CONTROL_MASK)) return FALSE; /* We are only interested if a well-defined path is clicked */ GtkTreePath *path = NULL; -- [mdw]