https://bugs.winehq.org/show_bug.cgi?id=52532
--- Comment #5 from Esme Povirk madewokherd@gmail.com --- It looks like we do not call sync_window_position from X11DRV_WindowPosChanged because we are processing an event (the WM_STATE client message which tells us the window is restored) when SDL makes the request to fullscreen the window. And then we get a ConfigureNotify with the old size from the WM so the window's fullscreen geometry is clobbered.
Maybe we should still call update_net_wm_states even if events are pending?