-
Notifications
You must be signed in to change notification settings - Fork 79
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
Feature Request: Smart Aero Snap without hotkey #83
Comments
It is possible, I did not include the option because I think that it can be al little risky, because it means that if there is a problem with AltDrag and it is in a stuck state, it may happen that you can no longer move windows normally. Try this version Of hooks.dll and set |
Thanks! I've been running it for a couple days and the snapping works beautifully. It occasionally interferes with titlebar operations (clicking min/max/close/icon/right click) in some windows. Not always and not all windows so I'm not sure how reproducible the issue is. |
In some cases the cursor may no longer point into in the titlebar and in this case when releasing the click AltDrag will not release the hook correctly. |
I tested this feature with AltSnaptest6.zip, so I don't know if this feature has already a better implementation, but so far the only program which the hook has problems detecting buttons with is the Windows 10 explorer. Further, there are some UWP apps which completely ignore any attempt on AltSnap dragging on the titlebar e.g. Photos and Movies&TV. |
This is expected, and unfortunately there is not much that can be done about it. You can check for yourself in the Identify window section of the Blacklist tab. click in the titlebar, and if WM_NCHITTEST displays 2, then it should work, otherwise it wont . There is a single remaining solution, that would be to make a list of those special windows and treat them specially by knowing that the top section of the window corresponds to the titlebar and by ignoring the response to the message. |
Yea, an individualist approach is less messy in the long run. But I'm still curious about the Windows 10 Explorer. |
This is expected indeed, have a look at the doc from MS: https://docs.microsoft.com/en-us/windows/win32/inputdev/wm-nchittest
|
Maybe this could help in finding a more general approach. I have an autohotkey script which lets me minimize and close windows with right mouse and middle mouse on the titlebar.
|
If I remember well ahk_id corresponds to the ancestor (ROOT) window, this is not what you are supposed to do, you are supposed to look at the window under the pointer and get the parent (edit: not ancestor) window until you get something different from HTTRANSPARENT (-1) Doing the loop was necessary for some programs such as SumatraPDF. Older versions of AltDrag were using the same trick than this ahk script but it was less reliable. |
Try this one I uninstalled all metro AppXs on my windows 10 workstation (because I hate them all), so I cannot test myself. |
Understandable, they are mostly undercooked. Not exclusively concerning the new hook, something I didn't notice yesterday, because I minimize via AltSnap or script, was that the minimize button often gets recognized as part of the titlebar (WM_NCHITTEST=2) instead of (WM_NCHITTEST=8). |
This could be increased by the mod I just made, If there are more problems inform me. Probably I will have to revert to the old behavior and the worst that can happen is that the window is not grabbed by AltSnap. I consider the title bar features to be secondary because the whole point of AltSanp is to move / resize / minimize / maximize / snap windows without the title bar. Personally I no longer ever move windows via their title bar. |
True, but it has its merits in terms of consistency, although the hassle seems disproportionate. |
For sure i intend to keep title bar AltSnap grabbing but I will not focus too much effort in making it perfect because it is an "advanced" option when the overall program and code-base will improve, I will spend more time on those details. for now I do implement them if it is easy (which it was). Next big step is Zone layouts support. |
Note for the title bar stuff, You got a backlist that you can set via the .ini only
I would appreciate if you could give me a list of windows in the AltSnap1.47test21bin.zip |
There must be an error this is an older version, this one should be the one. |
On the fly, I would say |
So, I tested all my installed 102 applications and |
@Ichisich, |
Would it be possible to have an option to trigger smart aero snap when a window is dragged normally by its title bar? In other words replace Window's own snap.
I absolutely love the smart aero snap feature but I'm always a tad annoyed to have a different snapping behaviour when I drag without hotkey.
The text was updated successfully, but these errors were encountered: