winex11: Grab the pointer in menu tracking mode too.

This commit is contained in:
Alexandre Julliard 2008-03-24 17:59:40 +01:00
parent 5787c12ba6
commit 78de7e363b
1 changed files with 2 additions and 2 deletions

View File

@ -1563,7 +1563,7 @@ void X11DRV_SetCapture( HWND hwnd, UINT flags )
{
struct x11drv_thread_data *thread_data = x11drv_thread_data();
if (!(flags & GUI_INMOVESIZE)) return;
if (!(flags & (GUI_INMOVESIZE | GUI_INMENUMODE))) return;
if (hwnd)
{
@ -1574,7 +1574,7 @@ void X11DRV_SetCapture( HWND hwnd, UINT flags )
XFlush( gdi_display );
XGrabPointer( thread_data->display, grab_win, False,
PointerMotionMask | ButtonPressMask | ButtonReleaseMask,
GrabModeAsync, GrabModeAsync, root_window, None, CurrentTime );
GrabModeAsync, GrabModeAsync, None, None, CurrentTime );
wine_tsx11_unlock();
thread_data->grab_window = grab_win;
}