winex11: Avoid updating _NET_WM_STATE on iconic windows.

This tends to trigger window mapping with some window managers.
This commit is contained in:
Rémi Bernon 2024-11-13 11:41:40 +01:00 committed by Alexandre Julliard
parent 199274d420
commit b1dd7da806
Notes: Alexandre Julliard 2024-11-13 22:30:56 +01:00
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/wine/merge_requests/6809

View file

@ -1216,6 +1216,7 @@ static void window_set_net_wm_state( struct x11drv_win_data *data, UINT new_stat
if (!data->whole_window) return; /* no window, nothing to update */
if (old_state == new_state) return; /* states are the same, nothing to update */
if (data->pending_state.wm_state == IconicState) return; /* window is iconic, don't update its state now */
if (!data->mapped) /* set the _NET_WM_STATE atom directly */
{
Atom atoms[NB_NET_WM_STATES + 1];