<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
Could you submit a test for this change?<br>
<br>
<br>
<div class="moz-cite-prefix">On 1/7/21 11:38 AM, Jiajin Cui wrote:<br>
</div>
<blockquote type="cite"
cite="mid:202101071138031324195@uniontech.com">
<pre class="moz-quote-pre" wrap="">
</pre>
<br>
<fieldset class="mimeAttachmentHeader"><legend
class="mimeAttachmentHeaderName">0001-winex11.drv-Make-Update-_NET_WM_STATE-before-replace.patch</legend></fieldset>
<pre class="moz-quote-pre" wrap="">From 1c36e284b4edd050a3fcda893425be35aa3643cb Mon Sep 17 00:00:00 2001
From: Jiajin Cui <a class="moz-txt-link-rfc2396E" href="mailto:cuijiajin@uniontech.com"><cuijiajin@uniontech.com></a>
Date: Thu, 7 Jan 2021 10:21:24 +0800
Subject: [PATCH] winex11.drv: Make Update _NET_WM_STATE before replaces the
size hints for the WM_NORMAL_HINTS property.
For windows without WS_THICKFRAME style, _NET_WM_STATE must be set first,
otherwise _NET_WM_STATE_MAXIMIZED_VERT and _NET_WM_STATE_MAXIMIZED_HORZ
cannot be removed when the window is restored to normal.
Signed-off-by: Jiajin Cui <a class="moz-txt-link-rfc2396E" href="mailto:cuijiajin@uniontech.com"><cuijiajin@uniontech.com></a>
---
dlls/winex11.drv/window.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/winex11.drv/window.c b/dlls/winex11.drv/window.c
index baaa30d74e3..8d9483646d1 100644
--- a/dlls/winex11.drv/window.c
+++ b/dlls/winex11.drv/window.c
@@ -1306,9 +1306,9 @@ static void sync_window_position( struct x11drv_win_data *data,
/* and Above with a sibling doesn't work so well either, so we ignore it */
}
+ update_net_wm_states( data );
set_size_hints( data, style );
set_mwm_hints( data, style, ex_style );
- update_net_wm_states( data );
data->configure_serial = NextRequest( data->display );
XReconfigureWMWindow( data->display, data->whole_window, data->vis.screen, mask, &changes );
#ifdef HAVE_LIBXSHAPE
</pre>
</blockquote>
<br>
</body>
</html>