protonscr

Alt Tabbing with engines that change window status is busted

dxvkopen dxgi
doitsujin/dxvk#4309 · opened 2024-09-30 by LethalManBoob · updated 2025-05-23 · 8 comments · github
LLethalManBoob 2024-09-30 github

Two games have this issue afaik, battlefield 4 and black ops 3.
These two games change from fullscreen to windowed when alt tabbing, this causes focus stealing issues with the app instantly stealing focus, denying alt tab activity.

Tested this on gnome and kde, identical issue
Tested different proton versions, same problem.

KK0bin maintainer 2024-09-30 github

Which DXVK version did this happen with?

Ddoitsujin maintainer 2024-09-30 github

2.4.1 should fix issues like these, please try that.

But yes, it is exceptionally difficult to emulate correct behaviour here because DXGI and the finicky expectations that some games have are just massive black boxes, and doing literally anything window-related at can very easily break stuff.

LLethalManBoob 2024-09-30 github

@K0bin Yes it uses the latest git for DXVK.

@doitsujin unfortunately it does not fix the issue. I suppose application specific hacks are not on the table ether.

Ddoitsujin maintainer 2024-09-30 github

I don't really have the knowledge to fix this. The patch that solved this problem for other games took several revisions and months of testing with hundreds of games and we're still finding regressions, this is the kind of problem we're talking about.

BBlisto91 2024-10-01 github

I am not sure that this is strictly a dxvk issue. Note that i have only tested Black Ops 3 so far.

The behavior of the game going windowed mode when you alt-tab from a exclusive fullscreen is just the native behavior as it will do the same on Windows. There you can also alt-tab and focus other apps fine even when using dxvk.
On Linux i do see that with Proton you kinda have to alt-tab twice to be able to focus another Window. With regular Wine this doesn't work at all as the game will only very briefly switch to windowed before snapping back to fullscreen so you can't focus anything else there at all.
But all this behavior is the exact same with wined3d during my testing.

Borderless mode works fine though (only tested in Proton).

LLethalManBoob 2024-11-08 github

As of the latest proton version (proton-cachyos) im not having this issue anymore on battlefield 4 on X11 gnome.
I dont know if any one of these fixed it but there you go.
if anyone can see if its still an issue for them it would help

BBlisto91 2025-05-23 github

@LethalManBoob Is this issue still gone?

LLethalManBoob 2025-05-23 github

@LethalManBoob Is this issue still gone?

Blacks ops 3, battlefield 4 and especially unreal engine 4/5 games, are still an issue. Using PROTON_ENABLE_WAYLAND=1 completely fixes all issues but doesnt work on a lot of those games.
Battlefield 4 seemingly has gotten better however

Launch options