Alexandre Julliard : winex11: Also ignore BadWindow errors caused by XSendEvent.

Alexandre Julliard julliard at winehq.org
Tue Dec 20 16:23:24 CST 2016


Module: wine
Branch: master
Commit: adc349c38edd82902571fb7100014241205b3731
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=adc349c38edd82902571fb7100014241205b3731

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Tue Dec 20 17:08:28 2016 +0100

winex11: Also ignore BadWindow errors caused by XSendEvent.

Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/winex11.drv/x11drv_main.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/dlls/winex11.drv/x11drv_main.c b/dlls/winex11.drv/x11drv_main.c
index 1c4ecfd..2127df4 100644
--- a/dlls/winex11.drv/x11drv_main.c
+++ b/dlls/winex11.drv/x11drv_main.c
@@ -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;




More information about the wine-cvs mailing list