doitsujin / dxvk

Vulkan-based implementation of D3D8, 9, 10 and 11 for Linux / Wine
zlib License
12.76k stars 822 forks source link

Games failing to minimize after alttabbing from fullscreen. #3095

Open LethalManBoob opened 1 year ago

LethalManBoob commented 1 year ago

Any game on fullscreen that runs dx9, dx10, or dx11 will often fail to minimize when alt-tabbing. I have to click the game tab (I use gnome dash to panel) a few times to make it minimize correctly so I can tab back in.

System information

Blisto91 commented 1 year ago

Did you experience the same in older versions of dxvk or did the behavior change with 2.0? 🙂

K0bin commented 1 year ago

@Blisto91 It's a known issue, we don't implement that behaviorm

LethalManBoob commented 1 year ago

Whos as fault for this then?

Blisto91 commented 1 year ago

What do you mean :thinking:

LethalManBoob commented 1 year ago

"we don't implement that behavior" Figured that meant that you don't control that behavior. Unless I'm wrong.

K0bin commented 1 year ago

It means we didnt bother to make it work like that yet.

LethalManBoob commented 1 year ago

It means we didnt bother to make it work like that yet.

oh ok, you probably want to make it work like that then. ;)

doitsujin commented 1 year ago

There's two problems with this, a) it requires intercepting window messages which is always very risky and prone to bugs, and b) I simply don't fully understand every detail of how DXGI (and D3D9/D3D9EX) behave in this regard, and the current state is arguably better than implementing something that works half the time but makes a the other half crash because there's some inaccuracy somewhere.

It's definitely not "minimize window if certain keys are pressed" either, there's a lot more to it, and as far as I'm aware it doesn't involve minimizing windows at all (some games may do that if they lose focus, but in general DXGI will transition out of fullscreen mode under certain conditions).

LethalManBoob commented 1 year ago

the dxvk-mingw build in the chaotic aur doesn't have this issue. its also 2.0