On Mon Apr 7 10:28:50 2025 +0000, Zhiyi Zhang wrote:
~~You're right. Let's use the old logic for now to avoid any complications.~~
Giving it a second thought, using the old logic, when a window has both `WS_MAXIMIZE` and `WS_MINIMIZE`.
``` (WS_MINIMIZE | WS_MAXIMIZE) & (WS_MINIMIZE | WS_MAXIMIZE) = WS_MINIMIZE | WS_MAXIMIZE
(WS_MINIMIZE | WS_MAXIMIZE) != WS_MAXIMIZE ``` So the work rect is empty when both `WS_MINIMIZE` and `WS_MAXIMIZE` are present using the old logic. The only case work rect is not empty is when WS_MAXIMIZE is set and WS_MINIMIZE is not set. Thus, the logic in v6 is correct, isn't it?