trying to fix alt-tab issue in windows

This commit is contained in:
Mark Vejvoda 2011-11-02 19:58:39 +00:00
parent 45d9261163
commit bc7eda930d
1 changed files with 8 additions and 0 deletions

View File

@ -239,6 +239,10 @@ bool Window::handleEvent() {
}
else {
Window::isActive = true;
#ifdef WIN32
HWND handle = GetSDLWindow();
ShowWindow(handle, SW_SHOW);
#endif
}
if(SystemFlags::getSystemSettingType(SystemFlags::debugSystem).enabled) SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line: %d] Window::isActive = %d\n",__FILE__,__FUNCTION__,__LINE__,Window::isActive);
@ -256,6 +260,10 @@ bool Window::handleEvent() {
//else if (event.active.gain == 1) {
else {
Window::isActive = true;
#ifdef WIN32
HWND handle = GetSDLWindow();
ShowWindow(handle, SW_SHOW);
#endif
}
if(SystemFlags::getSystemSettingType(SystemFlags::debugSystem).enabled) SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line: %d] Window::isActive = %d, event.active.state = %d\n",__FILE__,__FUNCTION__,__LINE__,Window::isActive,event.active.state);