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.
Aero + Visual Studio Debug + Fullscreen
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?
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.
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.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement