-
-
Notifications
You must be signed in to change notification settings - Fork 78
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
Option to re-enable old behavior of "warp" keyword #846
Comments
Hi @mnejedlo I wouldn't say it broke backwards compatibility -- it fixed what I consider to be a bug. I really don't want an option to make the now changed behaviour its own option. Why do you want the old behaviour? You can still achieve it by passing parameters to the Warp command. I've a mind to close this issue as a result. |
I agree, the original issue was the behavior was not working as documented. With the old behavior it could happen that the pointer isn't even warped to the window. The warp option with the Move command is there to ensure the mouse is in the window (center is a good location) after the window is moved. If you want more control of where the mouse moves, instead of using Warp option of the move command write a custom function and use WarpToWindow. It may take a little computation in a shell, but you could write your own function that would save a windows current location, move it, then use WarpToWindow to move the mouse relative to where you want it (though it may require a bit of computation if you want the mouse to appear outside of the window). |
So, here's my use case. In fvwm2, I have:
Depending which mouse button I click on title bar button 7, I can move the window to the left/right/top/bottom. In fvwm2, if I want to move a window to the top-left corner, I can click mouse button 1, then immediately mouse button 4 because warp keeps my mouse over title bar button 7. In fvwm3, I click button 1, then have to move my mouse back to button 7 before I can use button 4 to move the window to the top of screen. I've not put time into reproducing the issue #511 use case, but at least the way I use it I've never had the mouse pointer end up anywhere other than staying over title bar button 7 when move/warping. If there's another way to achieve this behavior, I'd love to know about it. I didn't see anything parameter like for Warp in the 1.0.4 man page I have on my machine (yes, I know it's old), and I'm having dead link problems with browsing the docs on github, so I can't check if there's something that was added since 1.0.4. |
I think you are missing the Instead you should think of there being two different actions, first the
I think it is reasonable that the default position to warp the pointer to is the center, but I undersatnd not everyone will think that is the best place for the mouse to be warped to. In that case you should use your own function and not the
The function takes the parameters If you really wanted to recreate the old behavior, you would need to write a tiny script using the starting location of the window, |
Describe the new feature
Issue #551 changed the be behavior of the warp keyword to move the mouse to the middle of the window. My workflow was heavily dependent on the old behavior, where the mouse stayed in the same position relative to the moving window.
I would like to request that the old behavior be restored. Recognizing that issue #551 has it's own use case, my preference would be that the issue #551 behavior be enabled by a new keyword like "warptocenter" or similar. If retaining the current behavior as "warp" is desired, the old behavior could perhaps be assigned a new keyword like "warprelative"
Behavior of "warp" keyword changed, I would like to re-enable the old behavior.
How might fvwm3 need to change?
fvwm3
, whatmight need to change, and whether this impacts backwards-compatability.
issue #551 broke backward compatibility, I'd like to re-enable that compatibility. May require new keyword assigned to allow for both old and new behavior as distinct use cases.
Can this be achieved through scripting?
not as far as I know.
fvwm3
?not that I know of.
fvwm2
The text was updated successfully, but these errors were encountered: