Mercurial > hg > xemacs-beta
diff lwlib/lwlib-Xaw.c @ 209:41ff10fd062f r20-4b3
Import from CVS: tag r20-4b3
author | cvs |
---|---|
date | Mon, 13 Aug 2007 10:04:58 +0200 |
parents | 5a88923fcbfe |
children | f220cc83d72e |
line wrap: on
line diff
--- a/lwlib/lwlib-Xaw.c Mon Aug 13 10:03:54 2007 +0200 +++ b/lwlib/lwlib-Xaw.c Mon Aug 13 10:04:58 2007 +0200 @@ -220,7 +220,11 @@ Widget topmost = instance->parent; w = shell->core.width; h = shell->core.height; - while (topmost->core.parent && XtIsRealized (topmost->core.parent)) + while (topmost->core.parent && + XtIsRealized (topmost->core.parent) && + /* HAVE_SESSION adds an unmapped parent widget that + we should ignore here. */ + topmost->core.parent->core.mapped_when_managed) topmost = topmost->core.parent; if (topmost->core.width < w) x = topmost->core.x; else x = topmost->core.x + ((topmost->core.width - w) / 2);