mirror of
https://github.com/reactos/wine.git
synced 2024-11-26 13:10:28 +00:00
winex11: Ignore Map/UnmapNotify if the window is already in the appropriate state.
This commit is contained in:
parent
2c22e9aeb6
commit
db43e7a582
@ -455,6 +455,7 @@ void X11DRV_MapNotify( HWND hwnd, XEvent *event )
|
||||
if (hwndFocus && IsChild( hwnd, hwndFocus )) X11DRV_SetFocus(hwndFocus); /* FIXME */
|
||||
return;
|
||||
}
|
||||
if (!data->iconic) return;
|
||||
|
||||
state = get_window_wm_state( event->xmap.display, data );
|
||||
if (state == NormalState)
|
||||
@ -502,7 +503,7 @@ void X11DRV_UnmapNotify( HWND hwnd, XEvent *event )
|
||||
int state;
|
||||
|
||||
if (!(data = X11DRV_get_win_data( hwnd ))) return;
|
||||
if (!data->managed || !data->mapped) return;
|
||||
if (!data->managed || !data->mapped || data->iconic) return;
|
||||
|
||||
state = get_window_wm_state( event->xunmap.display, data );
|
||||
if (state == IconicState)
|
||||
|
Loading…
Reference in New Issue
Block a user