Jump to content
  • Advertisement
Sign in to follow this  
TTK-Bandit

Aero + Visual Studio Debug + Fullscreen

This topic is 2952 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

When I switch my opengl app to fullscreen, it switches focus to a different window.
This only happens when Aero is enabled.
Since aero gets disabled after the window was changed to be borderless and to cover the entire screen, my guess is that aero in combination with visual studio (2008) for some reason changes the window focus.
The problem does not happen when I start the same exe (debug build) manually without the debugger, so it could possibly be performance related.

so I tried disabling aero beforehand via DwmEnableComposition, but aside from removing my window border even before I change the window style, nothing changes.

Any help is deeply appreciated.

Share this post


Link to post
Share on other sites
Advertisement
What exactly is your concern? That the window focus changes during the change to full screen? That you see different behavior in debug/release builds?

Share this post


Link to post
Share on other sites
that the window focus changes, since this way I can't go to fullscreen mode in debug:
When I toggle fullscreen aereo kicks in and the app gets iconified (default action when focus is lost during fullscreen).
I then try to de-iconify it, the window pops up, tries to go to fullscreen, aero kicks in, the app iconifies again because it lost focus.

If I simply disable the iconification code, I still lose focus, but see the game rendered in fullscreen with taskbar and mouse visible.
clicking on the lost window with the mouse does exactly the same thing: aero kicks in, the window loses focus again.

btw, all this with desktop-resolution, so there is no resolution switch in between.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!