File tgif-4.2.5-arc.patch of Package tgif

--- arc.c.original	2011-06-28 04:04:56.000000000 +0200
+++ arc.c	2012-07-27 06:35:28.105498220 +0200
@@ -1590,13 +1590,15 @@
          ExposeEventHandler(&input, TRUE);
          SetXorDrawGC(xorColorPixels[colorIndex]);
       } else if (input.type == ButtonPress) {
-         if (input.xbutton.button != Button1 || drawing_arc) {
+         if (input.xbutton.button == Button2 ||
+               (input.xbutton.button == Button3 && !drawing_arc) ||
+               drawing_arc) {
             XUngrabPointer(mainDisplay, CurrentTime);
             HighLightInContinueArc(drawing_arc, OrigX, OrigY, saved_x,
                   saved_y, ltx, lty, &w, &h, angle1, angle2, &dx, &dy, &radius,
                   FALSE, TRUE, buf);
             done = TRUE;
-            if (input.xbutton.button != Button1) {
+            if (input.xbutton.button == Button2) {
                angle2 = 0;
             }
             Msg("");
@@ -1622,12 +1624,12 @@
             Msg(TgLoadCachedString(CSTID_SPECIFY_ARC_THIRD));
             SetMouseStatus(TgLoadCachedString(CSTID_SET_ARC_THIRD),
                   TgLoadCachedString(CSTID_CANCEL),
-                  TgLoadCachedString(CSTID_CANCEL));
+                  TgLoadCachedString(CSTID_SET_ARC_THIRD));
          } else {
             Msg(TgLoadCachedString(CSTID_SPECIFY_ARC_END));
             SetMouseStatus(TgLoadCachedString(CSTID_SET_ARC_END),
                   TgLoadCachedString(CSTID_CANCEL),
-                  TgLoadCachedString(CSTID_CANCEL));
+                  TgLoadCachedString(CSTID_SET_ARC_END));
          }
          PixelToMeasurementUnit(r_buf, ABS_SIZE(radius));
          sprintf(buf, "r=%s\ndegree=0", r_buf);
openSUSE Build Service is sponsored by