mirror of
https://gitlab.winehq.org/wine/wine.git
synced 2024-11-19 17:06:04 -07:00
winex11: Avoid updating _NET_WM_STATE on iconic windows.
This tends to trigger window mapping with some window managers.
This commit is contained in:
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
1 changed files with 1 additions and 0 deletions
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue