dxwrapper icon indicating copy to clipboard operation
dxwrapper copied to clipboard

alt tab can be trigged but the selected window cannot show up.

Open iujakchu opened this issue 1 year ago • 10 comments

I tried to use it with plant vs zombie. I have to enable FullscreenWindowMode so the game launch with fullscreen mode, but I cannot switch to another window.

iujakchu avatar Nov 06 '23 06:11 iujakchu

Yes, FullscreenWindowMode forces the window to be on the top. Try pressing Win+D to minimize all windows. Then you should be able to switch to another window after that.

elishacloud avatar Nov 06 '23 23:11 elishacloud

Thanks for you reply. While Win+D works the same as alt+tab.

iujakchu avatar Nov 07 '23 08:11 iujakchu

Ok, try this update and let me know if it works or not: dxwrapper.zip

elishacloud avatar Nov 08 '23 04:11 elishacloud

Sorry,it does not work.The same behavior as before.

iujakchu avatar Nov 08 '23 14:11 iujakchu

I fiddled around with a similar Alt-Tab / Minimize Issue a while ago, but it was for Windowed Mode, not sure if it applies here too. Don't know what the code changes are in the ZIP, maybe they are pretty much the same.

I haven't gotten around to pushing some of my stuff to my fork yet for a possible PR ( wasn't sure if it was too hacky anyway ).

My main code change was in IDirect3D9Ex.cpp, AdjustWindow Function changing SetWindowPos(MainhWnd, HWND_TOP, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE | SWP_NOZORDER | SWP_FRAMECHANGED); to SetWindowPos(MainhWnd, HWND_NOTOPMOST, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE | SWP_FRAMECHANGED);

rebb avatar Nov 11 '23 09:11 rebb

Try this update and let me know if this works or not: dxwrapper.zip

elishacloud avatar Nov 11 '23 19:11 elishacloud

:thinking:

rebb avatar Dec 05 '23 14:12 rebb

I am not sure if the last fix solved this issue. However, I can reproduce this issue with dd7to9 on a couple of games. What features of dxwrapper are you using for this game? I don't think setting HWND_NOTOPMOST is the right fix. I have seen where removing D3DCREATE_NOWINDOWCHANGES has solved this for some games.

elishacloud avatar Dec 06 '23 05:12 elishacloud

Sorry, i just bumped the issue because i'm also curious about it and what the fix might be :) But it seems the Author is not available at the moment ? :(

rebb avatar Dec 06 '23 17:12 rebb

Alt+Tab should work for most games with the latest build here: dx7 binaries.zip

elishacloud avatar Jul 20 '24 01:07 elishacloud