Skip to content
This repository has been archived by the owner on Mar 30, 2019. It is now read-only.

D3D10 DXGI Alt-Tab #241

Closed
CoderBob opened this issue Dec 26, 2013 · 1 comment
Closed

D3D10 DXGI Alt-Tab #241

CoderBob opened this issue Dec 26, 2013 · 1 comment

Comments

@CoderBob
Copy link

Alt-Tabing while in full-screen results in an inaccessible window. The user can no longer "cycle" back to the game by further alt-tabing, while selecting the icon on the taskbar has no effect.

potential work around:
Manually handling the WM_ACTIVATEAPP message, and calling swapChain.SetFullscreenState(true, null). Window is displayed after this, but no longer captures user input.

Extra info:
NOT using toolkit, just SharpDX and SharpDX.Direct3D10.
Problem persists whether or not I call dxgiFactory.MakeWindowAssociation(myForm.Handle, WindowAssociationFlags.IgnoreAll);
This is on windows 7.

@xoofx
Copy link
Member

xoofx commented Jan 6, 2014

I don't see clearly where the bug is in SharpDX. This is mostly an application side problem, so you need to manage it correctly on your side (as you would do in C++). For example, SharpDX.Windows.RenderForm provides events AppActivated/AppDeactivated that you can use to handle this case.

@xoofx xoofx closed this as completed Jan 6, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants