diff -abBpNPwrU2 --exclude='*.svn' irrlicht-svn-ss/trunk/source/Irrlicht/CGUIEnvironment.cpp Irrlicht_starsonata/source/Irrlicht/CGUIEnvironment.cpp --- irrlicht-svn-ss/trunk/source/Irrlicht/CGUIEnvironment.cpp 2007-07-26 02:11:08.000000000 +0200 +++ Irrlicht_starsonata/source/Irrlicht/CGUIEnvironment.cpp 2008-08-15 18:20:47.000000000 +0200 @@ -501,4 +519,13 @@ bool CGUIEnvironment::postEventFromUser( } + // Starsonata, MICHA. We need to give the hovered window the chance to react on the mouse + // even when it's not focused. + // The "&& Focus" check is just because the event would be called a second time below otherwise + if ( Hovered && Focus && Hovered != Focus && event.MouseInput.Event == EMIE_MOUSE_MOVED ) + { + if ( Hovered->OnEvent(event) ) + return true; + } + // sending input to focus if (Focus && Focus->OnEvent(event))