Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to move cursor position when hidden #23

Open
devnoname120 opened this issue Jun 4, 2017 · 7 comments
Open

Add option to move cursor position when hidden #23

devnoname120 opened this issue Jun 4, 2017 · 7 comments

Comments

@devnoname120
Copy link

I use unclutter with a tiling window manager (i3) since most of the time I don't use the mouse.
However, the hidden cursor still interacts with the underlying elements, and this is particularly annoying when browsing the web because it will trigger the onmouseover event of all elements it goes above.

Would it be possible to add an option so that the cursor would be moved at a chosen location when it's hidden? It would come back at the previous location when unhiding the mouse by moving it.

Thank you for this awesome tool.

@devnoname120 devnoname120 changed the title Cursor is hidden without being moved Add option to move cursor position when hidden Jun 4, 2017
@Airblader
Copy link
Owner

Sure, PRs welcome. Note that it'll have to find a good way to deal with things like changing screen configurations in the meantime and that it should of course be an additional option, not a default behavior.

@devnoname120
Copy link
Author

devnoname120 commented Jun 6, 2017

I agree. I don't think I will do it since I don't have good knowledge about how these things are handled. I would rather spend my time on other opensource projects I maintain than spending significant time learning what I need to know to implement it.

@amosbird
Copy link

Moving cursors would result in unexpected side effects, for instance https://github.com/jcs/xbanish/issues/40

I wonder if it's possible to make the X window ignore mouse hover event when the cursor is invisible?

@daniel-Jones
Copy link

daniel-Jones commented May 1, 2020

this began annoying me, if someone wants to quickly and hackily get the pointer off screen top left, add to cursor_hide() in cursor.c
XWarpPointer(display, None, None, 0,0,0,0, -1920, -1080);
all previous discussed problems are a thing but it works good enough for me.

@mjkalyan
Copy link
Contributor

Moving cursors would result in unexpected side effects, for instance jcs/xbanish#40

I wonder if it's possible to make the X window ignore mouse hover event when the cursor is invisible?

If possible, making X ignore some user-defined set of mouse events while hidden would be the most elegant solution in my opinion. If I think of a way to do that (or someone with better knowledge of X gives me some direction) I could submit a PR.

@amosbird
Copy link

I could submit a PR.

@mjkalyan fantastic.

@ghost
Copy link

ghost commented Oct 30, 2022

Can there be any way to instead of hiding cursor, but to completely disable ? That would fix this issue btw.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants