summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c6172c4)
raw | patch | inline | side by side (parent: c6172c4)
author | cilix42 <cilix42@users.sourceforge.net> | |
Wed, 18 Apr 2007 09:29:33 +0000 (09:29 +0000) | ||
committer | cilix42 <cilix42@users.sourceforge.net> | |
Wed, 18 Apr 2007 09:29:33 +0000 (09:29 +0000) |
src/pen-context.cpp | patch | blob | history |
diff --git a/src/pen-context.cpp b/src/pen-context.cpp
index 0f8a4204a928b19217d7138eb31138e82466feb2..ac4a8accb775d5c46cd8a89c1a30bb94a48aff17 100644 (file)
--- a/src/pen-context.cpp
+++ b/src/pen-context.cpp
static gint pen_handle_button_press(SPPenContext *const pc, GdkEventButton const &bevent);
static gint pen_handle_motion_notify(SPPenContext *const pc, GdkEventMotion const &mevent);
static gint pen_handle_button_release(SPPenContext *const pc, GdkEventButton const &revent);
-static gint pen_handle_2button_press(SPPenContext *const pc);
+static gint pen_handle_2button_press(SPPenContext *const pc, GdkEventButton const &bevent);
static gint pen_handle_key_press(SPPenContext *const pc, GdkEvent *event);
static void spdc_reset_colors(SPPenContext *pc);
break;
case GDK_2BUTTON_PRESS:
- ret = pen_handle_2button_press(pc);
+ ret = pen_handle_2button_press(pc, event->button);
break;
case GDK_KEY_PRESS:
@@ -710,10 +710,10 @@ pen_handle_button_release(SPPenContext *const pc, GdkEventButton const &revent)
}
static gint
-pen_handle_2button_press(SPPenContext *const pc)
+pen_handle_2button_press(SPPenContext *const pc, GdkEventButton const &bevent)
{
gint ret = FALSE;
- if (pc->npoints != 0) {
+ if (pc->npoints != 0 && bevent.button != 2) {
spdc_pen_finish(pc, FALSE);
ret = TRUE;
}