winex11: Update queue input time on WM_TAKE_FOCUS.

Since f82b115d we avoid setting the window active/foreground before restoring it because it confuses some SDL applications.

Now, when the window gets restored from the WM_SYSCOMMAND message logic, there is a chance that its activation is rejected by our own foreground stealing prevention mechanism, as the window input time might be before the current foreground window input time. Updating the user input time, when the host indicates that a window is about to gain focus, will help making sure that future activation from the window restoration are accepted, and that the win32 event sequence happens as expected by the application.

Merge request reports

Loading