This fixes various problems I've run into while trying to use Fusion 360 in wine.
- stacking issues in unmanaged mode
- I also attempted to apply the same fix for managed mode, but it looks difficult to do this in a way that plays well with window managers; I think it's best left up to them to keep override_redirect windows at the top of the stack)
- when the window manager sets our state to withdrawn, tell the window that it's been minimized, since the semantics are very similar
- the last one is a hack because I don't really know what to do about it, when clicking on the floating popups, they gain focus, which causes wine to incorrectly make them managed and that breaks everything
--
v2: winex11: don't make a window managed because it's active
winex11: pass ICCCM withdrawn state as minimized
winex11: restack a window's owned popups above it
https://gitlab.winehq.org/wine/wine/-/merge_requests/2343
Trying to reduce the likelihood of spurious failures. Keyboard / mouse devices are more subject to window foreground issues and less reliable than the HID joystick device. This also increases the timeout of some waits that aren't supposed to fail, trying to mitigate possible failures on Gitlab CI, under suspected heavy load.
Supersedes https://gitlab.winehq.org/wine/wine/-/merge_requests/2261.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54558
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54594
--
v3: dinput/tests: Increase timeouts for waits not supposed to fail.
dinput/tests: Remove BuildActionMap / SaveActionMap mouse and keyboard tests.
dinput/tests: Test SaveActionMap effect on HID joystick input.
dinput/tests: Test SaveActionMap effect on DIPROP_RANGE property.
dinput/tests: Test SaveActionMap effect on DIPROP_BUFFERSIZE property.
dinput/tests: Test SaveActionMap effect on DIPROP_APPDATA property.
dinput/tests: Test SaveActionMap effect on DIPROP_USERNAME property.
dinput/tests: Test BuildActionMap / SaveActionMap with the HID joystick.
include: Add some dinput.h action semantics definitions.
dinput/tests: Skip the tests if acquiring the device fails.
https://gitlab.winehq.org/wine/wine/-/merge_requests/2421