Allow messages after SetForegroundWindow returns. Kwin likes to resize
our window some more after d3d9 resized it.
Patch 2 makes the test stricter on Windows to give it some meaning.
--
https://gitlab.winehq.org/wine/wine/-/merge_requests/8132
--
v4: winex11: Reconfigure window even if the new rectangle equals to the old one.
winex11: Serialize window config requests with some other requests.
winex11: Serialize managed window config change requests.
winex11: Track window pending config position / size independently.
winex11: Serialize individual _NET_WM_STATE bit changes.
winex11: Continue requesting desired window state on no-op event.
https://gitlab.winehq.org/wine/wine/-/merge_requests/8079
Windows uses a smaller alignment than gstreamer for some formats, for
example NV12. This means we cannot use MFCalculateImageSize() to get the
output sample size. Commit 7b79e3a87b1e switched to calling it instead of
GetOutputStreamInfo() to fix some game bugs.
--
v4: winegstreamer: Call wg_format_get_max_size() to get the video decoder output sample size.
winegstreamer: Do not pass a sample size to wg_transform_read_mf().
mf/tests: Add a video processor NV12 test with a width alignment of 2.
https://gitlab.winehq.org/wine/wine/-/merge_requests/8034
Hi @yurih, from what I understand the reason alt(-tab) is problematic is because the alt menu mode is enabled when the key is released. However, avoiding the release just for this behavior doesn't seem like a viable way forward, since other applications may treat alt differently or may also require treating other keys the same way.
I was experimenting a bit and sending WM_CANCELMODE (which winex11 does already) seems to help with the alt(-tab) menu situation in my tests. Could you try the following and let me know if it helps with your use case:
```patch
--- a/dlls/winewayland.drv/wayland_keyboard.c
+++ b/dlls/winewayland.drv/wayland_keyboard.c
@@ -800,6 +800,11 @@ static void keyboard_handle_leave(void *data, struct wl_keyboard *wl_keyboard,
* and for any key repetition to stop. */
release_all_keys(hwnd);
+ if (hwnd == NtUserGetForegroundWindow())
+ {
+ if (!(NtUserGetWindowLongW(hwnd, GWL_STYLE) & WS_MINIMIZE))
+ send_message(hwnd, WM_CANCELMODE, 0, 0);
+ }
/* FIXME: update foreground window as well */
}
```
--
https://gitlab.winehq.org/wine/wine/-/merge_requests/6199#note_104335