Eduardo Santiago
5fdb707a25
Identify the correct screen
...
On multiscreen systems, identify which screen the cursor is on.
Code copied shamelessly from xdotool.
Signed-off-by: Eduardo Santiago <ed@edsantiago.com>
3 years ago
Martin Tournoij
73fcc7d419
Accept argument in -o for outline width, add --outline-color
...
Fixes #21
3 years ago
Martin Tournoij
49f0ef9270
Don't really need a manpage
4 years ago
Martin Tournoij
45e937a7a3
Revert "Smoother experience when drawing a solid circle with --repeat 0 --follow"
...
This reverts commit 241ae5c0d4
.
5 years ago
Martin Tournoij
241ae5c0d4
Smoother experience when drawing a solid circle with --repeat 0 --follow
...
Just move the window, instead of constantly creating and destroying new
ones.
5 years ago
Martin Tournoij
27f1a9699b
Fix some memory leaks
...
Not really noticeable when using it once since it's such a short-lived
program, but with "-r0" it can add up over time.
There may be other leaks, need to check/test to be sure (but valgrind
doesn't report any).
See: #17
5 years ago
Martin Tournoij
21d69a8223
Centre on the mouse hotspot better
...
Use xhot and yhot to better get the "mouse hotspot". This should fix #15
5 years ago
Martin Tournoij
87d9e18155
-r needs an argument
...
Fixes #16
5 years ago
Martin Tournoij
e222a32479
Account for the cursor size
...
Should give a more accurate position most of the time. Also
XFixesGetCursorImage() is a lot simpler to use than XQueryPointer().
5 years ago
Martin Tournoij
49ce340e87
Make --repeat accept an argument
5 years ago
Kirill Bulygin
ff7be1dad0
Implement `--repeat`
5 years ago
Martin Tournoij
ba889debe4
Fix error message
...
Display correct error message;
$ unset DISPLAY
$ find-cursor
find-cursor: DISPLAY not set
And no longer segfault
$ DISPLAY=asdf find-cursor
find-cursor: cannot open display 'asd'
Fixes #13
5 years ago
Markus Rinne
19c99b46b3
Remove unneeded statement ( #14 )
...
Variable 'argc' is never used after this statement.
5 years ago
Markus Rinne
db50bc256d
Don't print null display name ( #11 )
...
Variable 'display_name' is always null here.
5 years ago
Martin Tournoij
274e07fbaa
Rename to outline
7 years ago
Florian Schüller
dc35cfe7ca
Add inverted color functionality
7 years ago
Martin Tournoij
9078b5a6d2
Fix warning
7 years ago
Martin Tournoij
71e60d504e
Add -g/--grow to reverse the animation direction
...
--grow was previously the default; now it will "shrink" the animation.
7 years ago
Martin Tournoij
05cfe4dbbe
Make -h fit on 80-column terminals
7 years ago
Martin Tournoij
5a27101bf1
Add -f and -t options
...
For --follow and --transparent. Enabling this may not always work, so
make them optional.
8 years ago
gandalf3
f6d9b2fea9
Merge branch 'master' of https://github.com/Carpetsmoker/find-cursor
8 years ago
Martin Tournoij
7ad971098f
Rename some options
...
step is now distance, and speed is now wait. This more accurately
describes what they do.
8 years ago
gandalf3
191faec43b
repaint transparency, otherwise window 'drags' a bit of whatever was under it originally with it wherever it goes
8 years ago
gandalf3
a7caf1ac7c
Make window follow cursor on every redraw
8 years ago
Martin Tournoij
623cb38bdd
Fix
8 years ago
Martin Tournoij
e3bb8d2d11
Use shaped window to pass through mouse events
...
Fixes #2 .
8 years ago
Martin Tournoij
9e721c0916
Add command-line arguments
9 years ago
Martin Tournoij
ca79a272a8
Set WM_NAME, WM_CLASS
9 years ago
Martin Tournoij
e29554e8c2
Oops, actually commit the source file
9 years ago