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

Provide an option to box the cursor into a given monitor/rectangle #603

Closed
somiaj opened this issue Aug 26, 2021 · 4 comments
Closed

Provide an option to box the cursor into a given monitor/rectangle #603

somiaj opened this issue Aug 26, 2021 · 4 comments
Labels
type:new-feature Brand new feature not yet present in fvwm3

Comments

@somiaj
Copy link
Collaborator

somiaj commented Aug 26, 2021

I would like a feature where I could force the mouse cursor to be boxed into a single monitor or a given rectangle that could then be toggled so when using certain apps I can restrict the cursor to that window and not accidentally move out it out.

@somiaj somiaj added the type:new-feature Brand new feature not yet present in fvwm3 label Aug 26, 2021
@ThomasAdam ThomasAdam added this to the 1.0.5 milestone Aug 26, 2021
@ThomasAdam ThomasAdam moved this to To do in FVWM3 Sep 18, 2022
@ThomasAdam ThomasAdam added this to FVWM3 Sep 18, 2022
@ThomasAdam ThomasAdam removed this from the 1.0.5 milestone Sep 18, 2022
@ThomasAdam
Copy link
Member

You can probably use unclutter for this.

@github-project-automation github-project-automation bot moved this from To do to Done in FVWM3 Oct 28, 2024
@somiaj
Copy link
Collaborator Author

somiaj commented Oct 28, 2024

I don't think unclutter would do this, it just hides the mouse, I want to make it so the mouse cannot move outside of a particular area. xinput --map-to-output is suppose to help with this, but for my mouse it didn't have any affect because my mouse can move further than 100% of the monitor size, so the transformation matrix just slows down mouse movement, not restrict it.

I think for mice who cannot move beyond the maximum global monitor using xinput to set a transformation matrix can be used to restrict the cursor to any rectangle on the desktop. But in my case I need to also tell my mouse driver to never allow positions beyond 100% of the global monitor. If this was possible easy enough in fvwm it would be nice.

@somiaj
Copy link
Collaborator Author

somiaj commented Oct 28, 2024

I wonder if this could be useful, seems XFixes extension includes pointer barriers which can be used to place the barrier into a given rectangle.

http://who-t.blogspot.com/2012/12/whats-new-in-xi-23-pointer-barrier.html

@somiaj
Copy link
Collaborator Author

somiaj commented Oct 29, 2024

Looking deeper I did find a tool like this that would work.

https://github.com/nogard0/xpointerbarrier

I still think it would be nice to implement this in fvwm, I don't like how that tool is listening for events.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:new-feature Brand new feature not yet present in fvwm3
Projects
Status: Done
Development

No branches or pull requests

2 participants