[gtk+] Properly ignore BadWindow and BadDrawable in get_child_info_handler()



commit 430ea2fff639f31b868e025002a32ba473c7bd07
Author: Maks Naumov <maksqwe1 ukr net>
Date:   Sun Jan 11 10:34:56 2015 -0800

    Properly ignore BadWindow and BadDrawable in get_child_info_handler()
    
    Signed-off-by: Maks Naumov <maksqwe1 ukr net>
    
    https://bugzilla.gnome.org/show_bug.cgi?id=742771

 gdk/x11/gdkasync.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gdk/x11/gdkasync.c b/gdk/x11/gdkasync.c
index bcc6ac7..a0ad44a 100644
--- a/gdk/x11/gdkasync.c
+++ b/gdk/x11/gdkasync.c
@@ -476,7 +476,7 @@ get_child_info_handler (Display *dpy,
   if (rep->generic.type == X_Error)
     {
       state->child_has_error = TRUE;
-      if (rep->error.errorCode != BadDrawable ||
+      if (rep->error.errorCode != BadDrawable &&
          rep->error.errorCode != BadWindow)
        {
          state->have_error = TRUE;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]