Fix the wayland side of https://bugs.winehq.org/show_bug.cgi?id=55336
### ~~Exit menu key by default:~~
That's the actual behavior, any non-special key will exit the menu key, and be sent to the client.
I was also wondering if we should add `menu_sys_key = f10_key = 0;` when receiving a `WM_ACTIVATE` in `win32u/defwnd.c`'s `default_window_proc` but I guess not ?
### ~~Fix repeated key for no reason:~~
For some reason when ALT is pressed, it is spammed and thus spams SYS_COMMAND. This fix that, but I don't know what I am doing here. I don't see any repeating key spamming with winex11 but I could be wrong. However alt/SYS_COMMAND should not be repeated.
That wasn't happening with winex11.drv.
### Fix release_all_keys modifier filtering:
That was the main reason why alt-tab leads to the menu key, NtUserGetAsyncKeyboardState also uses left and right system keys.
--
v13: winewayland: Fix release_all_keys's modifier filtering.
https://gitlab.winehq.org/wine/wine/-/merge_requests/6199
On Sat Mar 22 22:56:23 2025 +0000, Robert Lippmann wrote:
> Sorry, I'm new to this :disappointed:
> What would happen if it was just a stub?
> I also figured, while I was there, I might as well implement it...
What would happen depends on an application that you run.
--
https://gitlab.winehq.org/wine/wine/-/merge_requests/7644#note_98772
On Sat Mar 22 23:08:45 2025 +0000, Robert Lippmann wrote:
> Oops. Well, they all actually just return errors.
> Which is what I think the problem is.
> Should I close this and just submit a patch that implements them?
> I'd probably do it simpler with just a hack with a static variable anyway.
Or should I keep the registry related code?
--
https://gitlab.winehq.org/wine/wine/-/merge_requests/7644#note_98771
On Sat Mar 22 22:59:02 2025 +0000, Nikolay Sivov wrote:
> All 4 functions you mentioned are already present in current code, in a
> form of stubs. So you don't need to update the spec file.
Oops. Well, they all actually just return errors.
Which is what I think the problem is.
Should I close this and just submit a patch that implements them?
I'd probably do it simpler with just a hack with a static variable anyway.
--
https://gitlab.winehq.org/wine/wine/-/merge_requests/7644#note_98770
On Sat Mar 22 22:54:23 2025 +0000, Robert Lippmann wrote:
> As for ordinal numbers, I just copied and pasted what winedump gave me.
> Should I change them all to @'s?
All 4 functions you mentioned are already present in current code, in a form of stubs. So you don't need to update the spec file.
--
https://gitlab.winehq.org/wine/wine/-/merge_requests/7644#note_98769
On Sat Mar 22 22:43:07 2025 +0000, Nikolay Sivov wrote:
> Header is another thing, but source files do not have to match how
> functions are arranged in the SDK.
Sorry, just seemed like a good idea because the existing file is pretty big and full of functions returning not implemented.
--
https://gitlab.winehq.org/wine/wine/-/merge_requests/7644#note_98768
On Sat Mar 22 22:43:29 2025 +0000, Nikolay Sivov wrote:
> So what does it need exactly, and why stubs are not enough?
Sorry, I'm new to this :disappointed:
What would happen if it was just a stub?
I also figured, while I was there, I might as well implement it...
--
https://gitlab.winehq.org/wine/wine/-/merge_requests/7644#note_98767
On Sat Mar 22 22:53:43 2025 +0000, Robert Lippmann wrote:
> From what I can tell, it uses:
> PowerSetActiveScheme
> PowerGetActiveScheme
> PowerReadFriendlyName
> PowerEnumerate
> I'm hoping just implementing the first 2 will get it to work.
As for ordinal numbers, I just copied and pasted what winedump gave me. Should I change them all to @'s?
--
https://gitlab.winehq.org/wine/wine/-/merge_requests/7644#note_98766
On Sat Mar 22 22:41:35 2025 +0000, Nikolay Sivov wrote:
> I meant ordinal numbers, preceding calling convention marker "stdcall".
> Does SteamVR require any of newer functions?
From what I can tell, it uses:
PowerSetActiveScheme
PowerGetActiveScheme
PowerReadFriendlyName
PowerEnumerate
I'm hoping just implementing the first 2 will get it to work.
--
https://gitlab.winehq.org/wine/wine/-/merge_requests/7644#note_98765
On Sat Mar 22 22:37:26 2025 +0000, Robert Lippmann wrote:
> SteamVR's vrmonitor.exe tries to change the power profile and crashes
> with an access violation.
> Valve has been bugged about this for years, since they really shouldn't
> be doing it. So, I figure it will never be fixed by them.
So what does it need exactly, and why stubs are not enough?
--
https://gitlab.winehq.org/wine/wine/-/merge_requests/7644#note_98764