Mercurial > hg > xemacs-beta
comparison 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 |
comparison
equal
deleted
inserted
replaced
208:f427b8ec4379 | 209:41ff10fd062f |
---|---|
218 { | 218 { |
219 unsigned int x, y, w, h; | 219 unsigned int x, y, w, h; |
220 Widget topmost = instance->parent; | 220 Widget topmost = instance->parent; |
221 w = shell->core.width; | 221 w = shell->core.width; |
222 h = shell->core.height; | 222 h = shell->core.height; |
223 while (topmost->core.parent && XtIsRealized (topmost->core.parent)) | 223 while (topmost->core.parent && |
224 XtIsRealized (topmost->core.parent) && | |
225 /* HAVE_SESSION adds an unmapped parent widget that | |
226 we should ignore here. */ | |
227 topmost->core.parent->core.mapped_when_managed) | |
224 topmost = topmost->core.parent; | 228 topmost = topmost->core.parent; |
225 if (topmost->core.width < w) x = topmost->core.x; | 229 if (topmost->core.width < w) x = topmost->core.x; |
226 else x = topmost->core.x + ((topmost->core.width - w) / 2); | 230 else x = topmost->core.x + ((topmost->core.width - w) / 2); |
227 if (topmost->core.height < h) y = topmost->core.y; | 231 if (topmost->core.height < h) y = topmost->core.y; |
228 else y = topmost->core.y + ((topmost->core.height - h) / 2); | 232 else y = topmost->core.y + ((topmost->core.height - h) / 2); |