Commit Graph

31 Commits (master)

Author SHA1 Message Date
Martin Tournoij 4a67d023ef
Use correct colormap with -t
Using the default colormap on a drawable w/ specific (ARGB) colormap for
rendering the arcs will lead to random colors being picked (typically
"white", but it can actually be anything) for the arcs. You have to use
the colormap specific to the drawawble (window)

Patch by luebking

Fixes #26
2 months ago
Martin Tournoij a78c716475
Minor cleanup 2 years ago
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>
2 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.
4 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.
4 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
4 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
4 years ago
Martin Tournoij 87d9e18155
-r needs an argument
Fixes #16
4 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 6 years ago
Florian Schüller dc35cfe7ca Add inverted color functionality 6 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.
7 years ago
gandalf3 f6d9b2fea9 Merge branch 'master' of https://github.com/Carpetsmoker/find-cursor 7 years ago
Martin Tournoij 7ad971098f
Rename some options
step is now distance, and speed is now wait. This more accurately
describes what they do.
7 years ago
gandalf3 191faec43b repaint transparency, otherwise window 'drags' a bit of whatever was under it originally with it wherever it goes 7 years ago
gandalf3 a7caf1ac7c Make window follow cursor on every redraw 7 years ago
Martin Tournoij 623cb38bdd
Fix 7 years ago
Martin Tournoij e3bb8d2d11
Use shaped window to pass through mouse events
Fixes #2.
7 years ago
Martin Tournoij 9e721c0916 Add command-line arguments 8 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