From: Anatoly Lyutin Date: Tue, 29 Apr 2008 11:57:06 +0000 (+0400) Subject: Important patch for menu working in 1c 8.0 X-Git-Tag: school-0.7~186^2~1 X-Git-Url: http://git.etersoft.ru/projects/?a=commitdiff_plain;h=511718e7f799bf51e146008870ba3c8b67e997dd;p=wine%2Feterwine.git Important patch for menu working in 1c 8.0 --- 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 ); } }