Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
iujakchu opened this issue Nov 6, 2023 · 9 comments
Open

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

iujakchu opened this issue Nov 6, 2023 · 9 comments

Comments

@iujakchu
Copy link

iujakchu commented Nov 6, 2023

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.

@elishacloud
Copy link
Owner

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.

@iujakchu
Copy link
Author

iujakchu commented Nov 7, 2023

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

@elishacloud
Copy link
Owner

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

@iujakchu
Copy link
Author

iujakchu commented Nov 8, 2023

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

@rebb
Copy link
Contributor

rebb commented Nov 11, 2023

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);

@elishacloud
Copy link
Owner

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

@rebb
Copy link
Contributor

rebb commented Dec 5, 2023

🤔

@elishacloud
Copy link
Owner

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.

@rebb
Copy link
Contributor

rebb commented Dec 6, 2023

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 ? :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants