microsoft / PowerToys

Windows system utilities to maximize productivity
MIT License
110.9k stars 6.53k forks source link

Can't Always On Top Certain Windows when RDR2 is being played #30583

Open csm10495 opened 10 months ago

csm10495 commented 10 months ago

Microsoft PowerToys version

0.76.2

Installation method

PowerToys auto-update

Running as admin

Yes

Area(s) with issue?

Always on Top

Steps to reproduce

Start the game via the Epic Games Store. The game is running in Windowed-borderless.

Here's a gif with me pressing the hotkey CTRL-WIN-T over and over to go from top->not, etc. It doesn't register on the chrome window but does on the settings window.

notworking

Logs: PowerToysReport_2023-12-23-14-24-52.zip

✔️ Expected Behavior

Always able to make any window 'Always on Top'

❌ Actual Behavior

If I have Read Dead Redemption 2 open in the background, i can no longer make Chrome Windows 'Always on Top'. The settings window for PowerToys can still be Always on Top'd.

Other Software

Google Chrome: Version 120.0.6099.111 Windows 10x64: 10.0.19045.3758 Red Dead Redemption 2 (Game Launched via Epic Games Store): 1.0.1491.18_v1

csm10495 commented 10 months ago

I also tried running chrome as admin: no difference.

csm10495 commented 10 months ago

Tried putting the game in windowed mode: No difference.

Also interestingly the game can't be made 'always on top' either.

csm10495 commented 10 months ago

Tried swapping the shortcut to something else: CTRL-WIN-/ .. no difference.

csm10495 commented 10 months ago

If you restart PowerToys after starting the game it seems to work. I wonder if the game is messing with the keyboard hook?

crutkas commented 10 months ago

betting 100% that is the case then which means we wouldn't be able to override this. Last hook wins and they are stomping our hook somehow.

If you quit, does AoT work again? /needinfo

csm10495 commented 10 months ago

If I quit the game it starts working.

If I quit the app and restart it while the game is still running, it works at that point.

It seems weird though: why would the hook be different for this app vs chrome?