There's no need to update the event mask in X11DRV_sync_window_style,

it never changes.
This commit is contained in:
Alexandre Julliard 2005-07-27 15:22:58 +00:00
parent d219a54e80
commit 2431a64419

View file

@ -130,12 +130,7 @@ static int get_window_attributes( struct x11drv_win_data *data, XSetWindowAttrib
attr->colormap = X11DRV_PALETTE_PaletteXColormap;
attr->save_under = ((GetClassLongW( data->hwnd, GCL_STYLE ) & CS_SAVEBITS) != 0);
attr->cursor = x11drv_thread_data()->cursor;
attr->event_mask = (ExposureMask | PointerMotionMask |
ButtonPressMask | ButtonReleaseMask | EnterWindowMask |
KeyPressMask | KeyReleaseMask | StructureNotifyMask |
FocusChangeMask | KeymapStateMask);
return (CWOverrideRedirect | CWSaveUnder | CWEventMask | CWColormap | CWCursor);
return (CWOverrideRedirect | CWSaveUnder | CWColormap | CWCursor);
}
@ -663,7 +658,11 @@ static Window create_whole_window( Display *display, struct x11drv_win_data *dat
/* set the attributes that don't change over the lifetime of the window */
attr.bit_gravity = NorthWestGravity;
attr.backing_store = NotUseful;
mask |= CWBitGravity | CWBackingStore;
attr.event_mask = (ExposureMask | PointerMotionMask |
ButtonPressMask | ButtonReleaseMask | EnterWindowMask |
KeyPressMask | KeyReleaseMask | StructureNotifyMask |
FocusChangeMask | KeymapStateMask);
mask |= CWBitGravity | CWBackingStore | CWEventMask;
wine_tsx11_lock();