Snap Layouts Support: WM_NCHITTEST should return HTMAXBUTTON, HTMINBUTTON, ... for caption buttons #12953

Closed
opened 2026-01-31 03:29:51 +00:00 by claunia · 6 comments
Owner

Originally created by @DHowett on GitHub (Mar 11, 2021).

Originally assigned to: @zadjii-msft on GitHub.

Right now, our implementation of WM_NCHITTEST only covers the "caption" portion of the drag bar. To properly support accessibility tools, we'll need to return more than HTCAPTION.

This may require some rearchitecting to make sure the drag bar can pass input to the XAML input site.

Originally created by @DHowett on GitHub (Mar 11, 2021). Originally assigned to: @zadjii-msft on GitHub. Right now, our implementation of WM_NCHITTEST only covers the "caption" portion of the drag bar. To properly support accessibility tools, we'll need to return more than HTCAPTION. This may require some rearchitecting to make sure the drag bar can pass input to the XAML input site.
Author
Owner

@skyline75489 commented on GitHub (Mar 11, 2021):

I don't want to be picky but isn't this the same as #8795 ?

@skyline75489 commented on GitHub (Mar 11, 2021): I don't want to be picky but isn't this the same as #8795 ?
Author
Owner

@DHowett commented on GitHub (Mar 11, 2021):

This one was filed for a very specific reason. 😄

@DHowett commented on GitHub (Mar 11, 2021): This one was filed for a very specific reason. :smile:
Author
Owner

@just1a-person commented on GitHub (Jun 29, 2021):

This one was filed for a very specific reason. 😄

There has been a lot of teases in this repo

@just1a-person commented on GitHub (Jun 29, 2021): > This one was filed for a very specific reason. 😄 There has been a lot of teases in this repo
Author
Owner

@zadjii-msft commented on GitHub (Aug 11, 2021):

Dead ends in: dev/migrie/titlebar-shenannigans, dev/mgirie/b/more-nchhittest-ideas

@zadjii-msft commented on GitHub (Aug 11, 2021): Dead ends in: [`dev/migrie/titlebar-shenannigans`](https://github.com/microsoft/terminal/compare/dev/migrie/titlebar-shenannigans), [`dev/mgirie/b/more-nchhittest-ideas`](https://github.com/microsoft/terminal/compare/dev/mgirie/b/more-nchhittest-ideas)
Author
Owner

@ghost commented on GitHub (Dec 14, 2021):

:tada:This issue was addressed in #11680, which has now been successfully released as Windows Terminal Preview v1.12.3472.0.🎉

Handy links:

@ghost commented on GitHub (Dec 14, 2021): :tada:This issue was addressed in #11680, which has now been successfully released as `Windows Terminal Preview v1.12.3472.0`.:tada: Handy links: * [Release Notes](https://github.com/microsoft/terminal/releases/tag/v1.12.3472.0) * [Store Download](https://www.microsoft.com/store/apps/9n8g5rfz9xk3?cid=storebadge&ocid=badge)
Author
Owner

@augustresende commented on GitHub (Oct 15, 2024):

If anyone is interested, snap layouts does not work in flutter desktop apps if title bar is customized/disabled:

https://github.com/flutter/flutter/issues/156791

@augustresende commented on GitHub (Oct 15, 2024): If anyone is interested, snap layouts does not work in flutter desktop apps if title bar is customized/disabled: https://github.com/flutter/flutter/issues/156791
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#12953