-
Notifications
You must be signed in to change notification settings - Fork 85
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
Improve Titlebar detection #229
Comments
@rp1231 and @Ichisich, hooks1.54test14_i386.zip EDIT: |
Thanks, It seems to be solved for me. |
Suggestion: AltSnap, prior to test14, was a bit inconsistent in handling the button box. |
When there is the combination I prefer to have false exclusion of some area rather than AltSnap kicking in when it should not. |
In my case, it's move (left mouse) and minimize (right mouse). ->maximize move+resize ->maximizehz moveUp Just go absolute in both directions. |
Makes sense indeed, there should be a global option so that people can configure if the Caption buttons should be included or not in the titlebar. Actually I was wrong, the caption is excluded frot the titlebar not depending on the action button but for the left and right mouse buttons. So I guess there should be a way to enable/disable caption button actions for all mouse buttons as pleased. |
@Ichisich in the screenshot you posted of mozilla firefox, there seem to be no title bar buttons. |
I collapsed them via the userChrome.css |
Ah ok I see, It's a custom firefox. Also, windows don't get focused by single left clicking when the left mouse button is set to move in the titlebar actions. I can create a new issue for this if needed but I didn't know if the issue was big enough to start a new thread for this. |
Terminal by default is blacklisted. You can delete
|
I'm referring to a single click action on the titlebar rather than a drag action. I just tried the setting you mentioned, but it doesn't seem to work very well for me. Also enabling this setting causes a certain window to go into a disco mode(for lack of a better word): explorer_gzXWs1XGJh.mp4 |
Related to #226 opened by @rp1231
There is a problem indeed with title-bar detection that deserves further investigation.
On Windows 10 the half lower part of the minimize button will respond
HTCAPTION
to theWM_NCHITTEST
message instead of tellingHTMINIMIZE
as it should. This was highlighted here #83 (comment) by @Ichisich in a different context.It is not always the case and I was thinking something can be done about it.
The idea is to check using the DWM api and the DWMWA_CAPTION_BUTTON_BOUNDS property to ensure we are not pointing to one of the caption buttons.
This may not be 100% reliable but it is worth trying.
I will post here future progress on this issue.
The text was updated successfully, but these errors were encountered: