From 502757ccc1c8075bb0c42f8c82c1057a18947495 Mon Sep 17 00:00:00 2001 From: buliabyak Date: Mon, 20 Aug 2007 05:52:44 +0000 Subject: [PATCH] gobble motion events when dragging selection - looks like with recent gtk, this does not lose grab anymore --- src/select-context.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/select-context.cpp b/src/select-context.cpp index 937e36959..c8186b1fd 100644 --- a/src/select-context.cpp +++ b/src/select-context.cpp @@ -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; -- 2.30.2