From: Dmitry Timoshkov Subject: Re: [PATCH resend 2/2] winex11.drv, winemac.drv: Don't send WM_CANCELMODE on focus loss. Message-Id: <20180131105627.ebae335f353fb7307dbb96fa@baikal.ru> Date: Wed, 31 Jan 2018 10:56:27 +0800 In-Reply-To: <1517363785-16238-2-git-send-email-z.figura12@gmail.com> References: <1517363785-16238-1-git-send-email-z.figura12@gmail.com> <1517363785-16238-2-git-send-email-z.figura12@gmail.com> Zebediah Figura wrote: > --- a/dlls/winex11.drv/event.c > +++ b/dlls/winex11.drv/event.c > @@ -804,7 +804,6 @@ static BOOL X11DRV_FocusIn( HWND hwnd, XEvent *xev ) > return; > } > if (hwnd != GetForegroundWindow()) return; > - SendMessageW( hwnd, WM_CANCELMODE, 0, 0 ); > > /* don't reset the foreground window, if the window which is > getting the focus is a Wine window */ Menu modal loop depends on this, and probably will be broken if WM_CANCELMODE no longer sent. -- Dmitry.