-
Notifications
You must be signed in to change notification settings - Fork 75
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
Trouble when mooving to the rightmost zone #374
Comments
As you say many windows do have a minimum/maximim size, so when the zone to which you snap to is too small, you will have trouble. |
An acceptable way for me is to move the window and window's right edge align with the Monitor screen's right edge instead of "cutting the window" if resizing Chrome like windows is impossible. It may feel a little bit strange as it may appear that the window is not resizing down to the zone area completely. But it is understandable. |
@RamonUnch, it looks like the GlazeWM(https://github.com/lars-berger/GlazeWM) can resize the chrome windows beyond their minimal sizes. . See the circled windows border (brave and edge browsers). So it looks like this is doable. |
It is possible to ignore the min/max limits that a window specifies, AltSnap purposefully respect what each window declares (taking extra steps for that), we are not supposed to ignore this information. It seems that GlazeWM ignores the information but it is quite risky, because if a program gives indication on the min size of a window then not respecting might lead to unintended behaviour or even crash. Probably no crash though unless the program is poorly written. I could add the option to ignore the MinMax info but it might lead to pther problems. |
Yes, absolutely agree with you. See the rightmose windows explorer title bar in my screenshot, the '+' button is shifted under the 'maximize' button. If user does not remember what that window is for due to the small size, user may get super confused. |
It is so simple to add an option to ignore MinMaxInfo that I just did it, Also it might help to have it around for debugging in the future. In your case you just want to ignore the Min info so set IgnoreMinMaxInfo to 1.
Some programs might still resize themselves back to their min size if you squish them too much. |
Thank you for the quick update. Unfortunately, it does not seem to affect the chrome browsers (this include brave, edge, microsoft teams etc). I tried both 1 and 3 for the value. My settings for Advanced section is below: DragThreshold=3 SnapThreshold=20 AeroThreshold=5 SnapGap=4 AeroMaxSpeed=65535 MultipleInstances=0 AlwaysElevate=1 ResizeAll=0 FullScreen=1 BLMaximized=0 AeroTopMaximizes=1 UseCursor=1 MinAlpha=8 ShiftSnaps=1 PiercingClick=1 |
I can confirm, Chrome resizes itself if you go beyond the limits, so I am unsure of what GlazeWM does. |
Yes, FancyZone has the same challenge. See microsoft/PowerToys#3433 and microsoft/PowerToys#10903 for related issues regarding minimal window sizes. GlazeWM's resizing is kind of dubious too as it can mess up the title bar. |
Indeed it seems GlazeWM is really a window manager so it is responsible for title-bar drawing, quite integrated to the system. AltSnap like FancyZones are just moving around the windows as they are and cannot do much more that what you could achieve with native resizing. |
Actually I just remembered now that we must pass the Have a try with this one setting |
It works with this fix, amazing! |
Present in 1.60 |
@RamonUnch , I found Chrome like browsers or electron apps has troubles when moving to the rightmost zone. The right side of the window are cut off (min, max, close buttons) or shift over the right edge so they are invisible. See the screenshot. This problem does not happen with normal desktop apps such as notepad, explorer window etc. Can this issue be addressed in the AltSnap? By the way, I am using Grid Layout (5x2).
See the screenshot for the issue. The red line indicate the right side screen boarder.
Originally posted by @zhichaoh in #368 (comment)
#368 (comment)
I found the root cause of this issue is that Chrome and its derived apps has minimal size and cannot shrink below that size. See: https://stackoverflow.com/questions/59199833/chrome-doesnt-scale-below-x-500px. FancyZone has the same issue. So this not an issue with AltSnap but rather the design of Chrome.
The text was updated successfully, but these errors were encountered: