diff -Nauwr Irrlicht/CIrrDeviceWin32.cpp Irrlicht/CIrrDeviceWin32.cpp --- Irrlicht/CIrrDeviceWin32.cpp 2005-08-24 17:58:34.000000000 +0200 +++ Irrlicht/CIrrDeviceWin32.cpp 2005-09-21 20:39:38.000000000 +0200 @@ -379,8 +379,8 @@ EnvMap.push_back(em); // set this as active window - SetActiveWindow(HWnd); SetForegroundWindow(HWnd); + SetActiveWindow(HWnd); } @@ -600,7 +604,7 @@ //! returns if window is active. if not, nothing need to be drawn bool CIrrDeviceWin32::isWindowActive() { - bool ret = (GetActiveWindow() == HWnd); + bool ret = (GetActiveWindow() == GetAncestor(HWnd,GA_ROOT)); _IRR_IMPLEMENT_MANAGED_MARSHALLING_BUGFIX; return ret; }