[PATCH resend 2/2] winex11.drv, winemac.drv: Don't send WM_CANCELMODE on focus loss.

Zebediah Figura z.figura12 at gmail.com
Wed Jan 31 10:22:47 CST 2018


On 30/01/18 20:56, Dmitry Timoshkov wrote:
> Zebediah Figura <z.figura12 at gmail.com> 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.
> 

Actually, as far as my testing shows, it's broken right now. Windows
doesn't send WM_CANCELMODE on focus loss, even if the window is tracking
a menu.



More information about the wine-devel mailing list