From: cilix42 Date: Tue, 29 Jan 2008 21:00:51 +0000 (+0000) Subject: Don't freeze when pressing Ctrl in the pencil tool (closes: LP #181898) X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=72b62e6e623c6df4fe3611ebc6527ce906770026;p=inkscape.git Don't freeze when pressing Ctrl in the pencil tool (closes: LP #181898) --- diff --git a/src/pencil-context.cpp b/src/pencil-context.cpp index 97d49b6ab..1088e19ed 100644 --- a/src/pencil-context.cpp +++ b/src/pencil-context.cpp @@ -265,9 +265,10 @@ pencil_handle_button_press(SPPencilContext *const pc, GdkEventButton const &beve static gint pencil_handle_motion_notify(SPPencilContext *const pc, GdkEventMotion const &mevent) { - if (mevent.state & GDK_CONTROL_MASK) { + if ((mevent.state & GDK_CONTROL_MASK) && (mevent.state & GDK_BUTTON1_MASK)) { // mouse was accidentally moved during Ctrl+click; // ignore the motion and create a single point + pc->is_drawing = false; return TRUE; } gint ret = FALSE;