winex11: Don't select for mouse events on the client window.

This commit is contained in:
Alexandre Julliard 2012-08-30 12:57:45 +02:00
parent e280527f6b
commit 2967599286
2 changed files with 3 additions and 4 deletions

View File

@ -1470,7 +1470,7 @@ void X11DRV_EnterNotify( HWND hwnd, XEvent *xev )
TRACE( "hwnd %p/%lx pos %d,%d detail %d\n", hwnd, event->window, event->x, event->y, event->detail );
if (event->detail == NotifyVirtual || event->detail == NotifyNonlinearVirtual) return;
if (event->detail == NotifyVirtual) return;
if (event->window == x11drv_thread_data()->grab_window) return;
/* simulate a mouse motion event */

View File

@ -332,8 +332,7 @@ static Window create_client_window( Display *display, struct x11drv_win_data *da
attr.bit_gravity = NorthWestGravity;
attr.win_gravity = NorthWestGravity;
attr.backing_store = NotUseful;
attr.event_mask = (ExposureMask | PointerMotionMask |
ButtonPressMask | ButtonReleaseMask | EnterWindowMask);
attr.event_mask = ExposureMask;
mask = CWEventMask | CWBitGravity | CWWinGravity | CWBackingStore;
if ((cx = data->client_rect.right - data->client_rect.left) <= 0) cx = 1;
@ -2286,7 +2285,7 @@ void CDECL X11DRV_SetCapture( HWND hwnd, UINT flags )
if (hwnd)
{
Window grab_win = X11DRV_get_client_window( GetAncestor( hwnd, GA_ROOT ) );
Window grab_win = X11DRV_get_whole_window( GetAncestor( hwnd, GA_ROOT ) );
if (!grab_win) return;
XFlush( gdi_display );