Code

fix selecting in groups with alt
authorbuliabyak <buliabyak@users.sourceforge.net>
Mon, 16 Apr 2007 23:15:25 +0000 (23:15 +0000)
committerbuliabyak <buliabyak@users.sourceforge.net>
Mon, 16 Apr 2007 23:15:25 +0000 (23:15 +0000)
src/select-context.cpp

index f6abf44f5a562c845507b7054ba7d0e5d1b7d9f5..1457b7603264b36a6bd9ebf4f3056ea16abc6044 100644 (file)
@@ -627,10 +627,11 @@ sp_select_context_root_handler(SPEventContext *event_context, GdkEvent *event)
 
                         } else if ((sc->button_press_ctrl || sc->button_press_alt) && !rb_escaped && !drag_escaped) { // ctrl+click, alt+click
 
-                            sc->button_press_ctrl = FALSE;
-
                             item = sp_event_context_find_item (desktop,
-                                         NR::Point(event->button.x, event->button.y), event->button.state & GDK_MOD1_MASK, TRUE);
+                                         NR::Point(event->button.x, event->button.y), sc->button_press_alt, sc->button_press_ctrl);
+
+                            sc->button_press_ctrl = FALSE;
+                            sc->button_press_alt = FALSE;
 
                             if (item) {
                                 if (selection->includes(item)) {