diff --git a/cliclick.m b/cliclick.m index 01631a6..6f99f08 100644 --- a/cliclick.m +++ b/cliclick.m @@ -165,7 +165,9 @@ int main (int argc, const char * argv[]) { } if (restoreOption) { - NSString *positionString = [NSString stringWithFormat:@"%d,%d", (int)initialMousePosition.x, (int)initialMousePosition.y]; + // Note: we have to prefix the coordinates with "=" to ensure they are not interpreted + // as relative values, see https://github.com/BlueM/cliclick/issues/119 + NSString *positionString = [NSString stringWithFormat:@"=%d,=%d", (int)initialMousePosition.x, (int)initialMousePosition.y]; id moveAction = [[MoveAction alloc] init]; [moveAction performActionWithData:positionString withOptions:executionOptions]; diff --git a/cliclick_Prefix.pch b/cliclick_Prefix.pch index a52f587..d5b9332 100644 --- a/cliclick_Prefix.pch +++ b/cliclick_Prefix.pch @@ -8,10 +8,10 @@ #endif // Version or branch -#define VERSION @"5.0" +#define VERSION @"5.0.1" // Date as m/d/Y -#define RELEASEDATE @"2021-02-27" +#define RELEASEDATE @"2021-08-07" #define MODE_REGULAR 0 #define MODE_VERBOSE 1