-
Notifications
You must be signed in to change notification settings - Fork 8.4k
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
Simplify non-client hit testing in NCIslandWindow to fix doubleclick #3024
Conversation
It turns out that our WM_LBUTTONDOWN handler wasn't even necessary, as our NCHITTEST tells win32 that all of the titlebar is actually non-client area. This brings the code in line with NonNonClientIslandWindow. Fixes #2513
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seems good to me..., but definitely worried about that other issue regressing. Considering you added the _DragRegionClickedHandlers
call w/in the WM_NC*BUTTON*
handlers, this looks like it'll work though.
Nah, I tested :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I love it when we mostly delete code and get more functionality haha
🎉 Handy links: |
It turns out that our WM_LBUTTONDOWN handler wasn't even necessary, as
our NCHITTEST tells win32 that all of the titlebar is actually
non-client area. This brings the code in line with
NonNonClientIslandWindow.
Fixes #2513
Validation Steps Performed
Went wild with the clicking and dragging.