x11: skip vanished child windows when listing children

Backported from GTK 3 commit 430ea2fff6 by Maks Naumov.
This commit is contained in:
Daemonratte 2026-10-15 14:08:02 +02:00
commit e1a840186f

View file

@ -620,7 +620,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;