not-nullptr / Aerochat

Native rewrite of Aerochat, a WLM 09 themed Discord client
Mozilla Public License 2.0
147 stars 8 forks source link

feat: Proper system menu handling with custom window frames #35

Closed kawapure closed 1 month ago

kawapure commented 1 month ago

Previously, the system menu was not opened if you clicked the application icon in the titlebar, but there was support for the double-click-to-close behaviour of the button.

This commit modifies the window procedure hook to handle this element properly. Now the native system menu is opened when you click the item.

image

Additionally, some of the BasicTitlebar.cs code was refactored.