Commit adc349c3 authored by Alexandre Julliard's avatar Alexandre Julliard

winex11: Also ignore BadWindow errors caused by XSendEvent.

parent ef743e41
......@@ -196,8 +196,11 @@ static const char * const atom_names[NB_XATOMS - FIRST_XATOM] =
*/
static inline BOOL ignore_error( Display *display, XErrorEvent *event )
{
if ((event->request_code == X_SetInputFocus || event->request_code == X_ChangeWindowAttributes) &&
(event->error_code == BadMatch || event->error_code == BadWindow)) return TRUE;
if ((event->request_code == X_SetInputFocus ||
event->request_code == X_ChangeWindowAttributes ||
event->request_code == X_SendEvent) &&
(event->error_code == BadMatch ||
event->error_code == BadWindow)) return TRUE;
/* the clipboard display interacts with external windows, ignore all errors */
if (display == clipboard_display) return TRUE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment