Skip to content

Simplify non-client hit testing in NCIslandWindow to fix doubleclick - #3024

Merged
Carlos Zamora (carlos-zamora) merged 1 commit into
masterfrom
dev/duhowett/minmax-2
Oct 2, 2019
Merged

Carlos Zamora (carlos-zamora) merged 1 commit into
masterfrom
dev/duhowett/minmax-2

Conversation

@DHowett-MSFT

Copy link
Copy Markdown
Contributor

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.

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
@zadjii-msft

Copy link
Copy Markdown
Member

Does this regress #2028/#2438?

@zadjii-msft Mike Griese (zadjii-msft) left a comment

Copy link
Copy Markdown
Member

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.

@zadjii-msft Mike Griese (zadjii-msft) added Area-UserInterface Issues pertaining to the user interface of the Console or Terminal Product-Terminal The new Windows Terminal. labels Oct 2, 2019
@DHowett-MSFT

Copy link
Copy Markdown
Contributor Author

Nah, I tested :)

@DHowett-MSFT Dustin L. Howett (MSFT) (DHowett-MSFT) added the Needs-Second It's a PR that needs another sign-off label Oct 2, 2019

Copy link
Copy Markdown

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

@carlos-zamora
Carlos Zamora (carlos-zamora) deleted the dev/duhowett/minmax-2 branch October 2, 2019 17:25
Dustin L. Howett (MSFT) (DHowett-MSFT) pushed a commit that referenced this pull request Oct 3, 2019
…3024)

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
@ghost

Copy link
Copy Markdown

🎉Windows Terminal Preview v0.5.2762.0 has been released which incorporates this pull request.:tada:

Handy links:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area-UserInterface Issues pertaining to the user interface of the Console or Terminal Needs-Second It's a PR that needs another sign-off Product-Terminal The new Windows Terminal.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

NonClientIslandWindow -- titlebar doubleclick no longer minmaxes

4 participants