Commit 90cae41
authored
fix negative relative mouse moves (#80)
fixes this error:
```
Internal_error: {"message":"failed during drag movement: mousemove_relative: unrecognized option '-60'\nUsage:
mousemove_relative [options] \u003cx\u003e \u003cy\u003e\n-c, --clearmodifiers - reset active modifiers (alt, etc)
while typing\n-p, --polar - Use polar coordinates. X as an angle, Y as distance\n--sync - only exit once the mouse
has moved\n\nUsing polar coordinate mode makes 'x' the angle (in degrees) and\n'y' the distance.\n\nIf you want to
use negative numbers for a coordinate, you'll need to\ninvoke it this way (with the '--'):\n mousemove_relative -- -
20 -15\notherwise, normal usage looks like this:\n mousemove_relative 100 140\n"} .
```
tested manually: https://screen.studio/share/lM76bBHd
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> Ensure negative relative mouse moves use the "--" separator when
building xdotool drag steps to avoid option parsing errors.
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
8d5ee87. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->1 parent 145ef64 commit 90cae41
1 file changed
+7
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
700 | 700 | | |
701 | 701 | | |
702 | 702 | | |
703 | | - | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
704 | 710 | | |
705 | 711 | | |
706 | 712 | | |
| |||
0 commit comments