Index: trunk/Source/OpenTK/Platform/Windows/WinGLNative.cs =================================================================== --- trunk/Source/OpenTK/Platform/Windows/WinGLNative.cs (revision 2553) +++ trunk/Source/OpenTK/Platform/Windows/WinGLNative.cs (working copy) @@ -150,6 +150,9 @@ #region WindowProcedure + [DllImport("user32.dll")] + static extern bool SetForegroundWindow(IntPtr hWnd); + IntPtr WindowProcedure(IntPtr handle, WindowMessage message, IntPtr wParam, IntPtr lParam) { switch (message) @@ -201,6 +204,7 @@ break; case WindowMessage.ERASEBKGND: + SetForegroundWindow(handle); return new IntPtr(1); case WindowMessage.WINDOWPOSCHANGED: