summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e783c97)
raw | patch | inline | side by side (parent: e783c97)
author | Krzysztof Kosiński <tweenk.pl@gmail.com> | |
Mon, 8 Feb 2010 16:07:50 +0000 (17:07 +0100) | ||
committer | Krzysztof Kosiński <tweenk.pl@gmail.com> | |
Mon, 8 Feb 2010 16:07:50 +0000 (17:07 +0100) |
src/ui/tool/selector.cpp | patch | blob | history |
index 8d3cf565059b21a0c746d0cfd46a72d29a06def3..a30f960253b3ce62baa86efe1601995b57bbbc97 100644 (file)
--- a/src/ui/tool/selector.cpp
+++ b/src/ui/tool/selector.cpp
case GDK_BUTTON_PRESS:
// Do not pass button presses other than left button to the control point.
// This way middle click and right click can be handled in SPEventContext.
- if (event->button.button != 1) return false;
- _dragger->setPosition(_desktop->w2d(event_point(event->motion)));
+ if (event->button.button == 1) {
+ _dragger->setPosition(_desktop->w2d(event_point(event->motion)));
+ return _dragger->event(event);
+ }
break;
default: break;
}
- return _dragger->event(event);
+ return false;
}
} // namespace UI