• Zhiyi Zhang's avatar
    winex11.drv: Always add MWM_FUNC_CLOSE to enabled windows. · 211da181
    Zhiyi Zhang authored
    Some window managers require MWM_FUNC_CLOSE to be present for a window to be allowed to close. For
    example, on KWin, a window of style WS_POPUP | WS_VISIBLE has a close button drawn on top of its
    taskbar preview. But when you press it, the window manager refuses to close it. On Mutter, windows
    without MWN_FUNC_CLOSE doesn't have a close button on the window preview. On Windows 10, enabled
    windows without WS_SYSMENU always has a close button on their taskbar window preview and can always
    be closed with the close button. On Windows 7, enabled windows without WS_SYSMENU has no close
    button on the window preview but still can be closed with the right-click menu on the taskbar.
    This patch changes the behavior to match that of Windows 10.
    
    Fix WeChat image preview window cannot be closed from KDE panels.
    Signed-off-by: 's avatarZhiyi Zhang <zzhang@codeweavers.com>
    Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
    211da181
window.c 102 KB