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

resize with mouse probem #2102

Closed
aspauldingcode opened this issue Feb 18, 2024 · 0 comments
Closed

resize with mouse probem #2102

aspauldingcode opened this issue Feb 18, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@aspauldingcode
Copy link

aspauldingcode commented Feb 18, 2024

I use the float resizing with mouse. I use right click to resize when holding down alt.

The problem I have with the current way it's handled, is there is no LOCK system in place while currently resizing.
In sway, if I have a floating window, I can resize it using my modifier hotkey and right click. But, swaywm implements this "lock" mechanism that only resizes a corner as it resizes. If I go to the top left quadrant of the floating window, activate resize, then I drag it down to the bottom right quadrant, swaywm continues to only modify the window size as if I am grabbing the top left corner.

In yabai, if I do the same, as I actively resize the window, yabai can SWITCH between the quadrants it is holding onto as it is actively resizing. This is very bad, as it has the unintended side effect of moving the window around, instead of only resizing the window from the intended window quadrant. What yabai needs to do, is create some form of lock mechanism, that specifically holds a quadrant of the window as it resizes, and then unlocks after the hotkey is released, and allows a different quadrant selection of the window to resize only after the hotkey is pressed over again and reset.

Something like: is_resizing? boolean check. If it is currently re_sizing with mouse, do not allow the resizing quadrant resize direction to switch.
if it is false, reset and allow the currently selected quadrant to change, based on current implementation of window resizing.

This would be such a quality improvement. Please please.

@koekeishiya koekeishiya added bug Something isn't working addressed on master; not released Fixed upstream, but not yet released and removed addressed on master; not released Fixed upstream, but not yet released labels Feb 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants