Mercurial > hg > xemacs-beta
diff src/EmacsShell-sub.c @ 3385:6830a3f39553
[xemacs-hg @ 2006-05-08 07:35:23 by stephent]
Improve DEBUG_GEOMETRY_MANAGEMENT messages.
<87y7xdotzh.fsf@tleepslib.sk.tsukuba.ac.jp>
author | stephent |
---|---|
date | Mon, 08 May 2006 07:35:25 +0000 |
parents | 374186f156d5 |
children | 383ab474a241 |
line wrap: on
line diff
--- a/src/EmacsShell-sub.c Sun May 07 21:51:09 2006 +0000 +++ b/src/EmacsShell-sub.c Mon May 08 07:35:25 2006 +0000 @@ -339,11 +339,16 @@ result == XtGeometryAlmost ? "XtGeometryAlmost" : "XtGeometryDone"); if (reply->request_mode & CWWidth) - printf ("width returned;"); + printf ("width returned was %d%s", + reply->width, + reply->request_mode & CWHeight ? "; " : ".\n"); if (reply->request_mode & CWHeight) - printf ("height returned;"); - printf ("\n"); - printf (" resulting shell size: %d %d\n", reply->width, reply->height); + printf ("height returned was %d.\n", reply->height); + /* #### does this also need to depend on the result? + With XtGeometryYes there doesn't seem to be a useful reply object. */ + printf (" resulting shell size: %d %d\n", + reply->request_mode & CWWidth ? reply->width : w->core.width, + reply->request_mode & CWHeight ? reply->height : w->core.height); printf ("----------\n"); fflush (stdout); #endif