Important patch for menu working in 1c 8.0
authorAnatoly Lyutin <vostok@etersoft.ru>
Tue, 29 Apr 2008 11:57:06 +0000 (15:57 +0400)
committerKonstantin Kondratyuk <kondratyuk@etersoft.ru>
Fri, 2 May 2008 10:56:18 +0000 (14:56 +0400)
dlls/winex11.drv/event.c

index 877d07be262e02135f4c1f60963821025429bfc3..4cef16b1217fdac59f0c425982cd0401e5b14e3f 100644 (file)
@@ -632,7 +632,7 @@ static void X11DRV_FocusOut( HWND hwnd, XEvent *xev )
         XUnsetICFocus( xic );
         wine_tsx11_unlock();
     }
-    if (hwnd != GetForegroundWindow()) return;
+    /* if (hwnd != GetForegroundWindow()) return;*/
     SendMessageW( hwnd, WM_CANCELMODE, 0, 0 );
 
     /* don't reset the foreground window, if the window which is
@@ -658,6 +658,8 @@ static void X11DRV_FocusOut( HWND hwnd, XEvent *xev )
             TRACE( "lost focus, setting fg to desktop\n" );
             SetForegroundWindow( GetDesktopWindow() );
         }
+        else
+            SetActiveWindow( hwnd );
     }
 }