Code

gobble motion events when dragging selection - looks like with recent gtk, this does...
authorbuliabyak <buliabyak@users.sourceforge.net>
Mon, 20 Aug 2007 05:52:44 +0000 (05:52 +0000)
committerbuliabyak <buliabyak@users.sourceforge.net>
Mon, 20 Aug 2007 05:52:44 +0000 (05:52 +0000)
src/select-context.cpp

index 937e369591542825087469cf66e8ee10cd218cd8..c8186b1fd1ef4b86c15ea6ceb1390c6ba91738c1 100644 (file)
@@ -519,9 +519,8 @@ sp_select_context_root_handler(SPEventContext *event_context, GdkEvent *event)
                         }
                         if (!seltrans->isEmpty())
                             seltrans->moveTo(p, event->button.state);
-                        if (desktop->scroll_to_point(&p))
-                            // unfortunately in complex drawings, gobbling results in losing grab of the object, for some mysterious reason
-                            ; //gobble_motion_events(GDK_BUTTON1_MASK);
+                        desktop->scroll_to_point(&p);
+                        gobble_motion_events(GDK_BUTTON1_MASK);
                         ret = TRUE;
                     } else {
                         sc->dragging = FALSE;