winex11.drv: Correct a full screen condition.
commit57b1b21a84b15f121eef998a31151d760beb8c1c
authorZiqing Hui <zhui@codeweavers.com>
Fri, 23 Apr 2021 03:31:50 +0000 (23 11:31 +0800)
committerAlexandre Julliard <julliard@winehq.org>
Tue, 27 Apr 2021 14:52:30 +0000 (27 16:52 +0200)
tree28911e47a664c2bc49d5cbed918ca35118628cd7
parent1ab8710016d4dc0cb0c61280dd7443b2a89b6b79
winex11.drv: Correct a full screen condition.

The if condition here came from 47c54c4ae7f235780a55ddf670503db4afc11055,
which is to detect full screen window.

However, according to tests in previous commit, there is possibility
that a window without setting WS_CAPTION is not full screen, for example,
main window of Tencent WeChat. And windows like this can also be maximized
or restored. So that we can not treat WS_CAPTION as our full screen condition.

This fixes maximizing Tencent WeChat by dragging it to screen edge.

Signed-off-by: Ziqing Hui <zhui@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/winex11.drv/event.c