alexmercerind / window_plus

As it should be. Extend view into title-bar.
MIT License
36 stars 8 forks source link

Snap layouts Windows 11 #8

Open augustresende opened 1 month ago

augustresende commented 1 month ago

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

fyi

alexmercerind commented 1 month ago

It will work as expected if HTMAXBUTTON is correctly returned in WM_NCHITTEST. Maybe send the current global position of the mounted WindowCloseButton widget to native side, for handling the window message based on that.

https://github.com/alexmercerind/window_plus/blob/cbb96cdc56b7814f372b1efbd9a9d0403367f4b7/windows/window_plus_plugin.cpp#L252-L298


Unfortunately, I consider this too much of a royalty at the moment... I lack time to do this.

alexmercerind commented 1 month ago

That issue is not related to Flutter... Flutter in itself doesn't even provide custom window chrome, at the time of writing.