From 511718e7f799bf51e146008870ba3c8b67e997dd Mon Sep 17 00:00:00 2001 From: Anatoly Lyutin Date: Tue, 29 Apr 2008 15:57:06 +0400 Subject: [PATCH] Important patch for menu working in 1c 8.0 --- dlls/winex11.drv/event.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dlls/winex11.drv/event.c b/dlls/winex11.drv/event.c index 877d07be26..4cef16b121 100644 --- a/dlls/winex11.drv/event.c +++ b/dlls/winex11.drv/event.c @@ -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 ); } } -- 2.33.8