bug-ddd
[Top][All Lists]
Advanced

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

Re: -geometry doesn't do anything


From: Andreas Zeller
Subject: Re: -geometry doesn't do anything
Date: 26 Apr 2001 16:40:23 +0200
User-agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Copyleft)

Hi!

"Elmer, Brent S" <address@hidden> writes:

> -geometry doesn't seem to do anything.

Thanks!  The enclosed patch fixes this.  This will also be in the next
DDD release.

Andreas

Index: ddd.C
===================================================================
RCS file: /cvsroot/ddd/ddd/ddd/ddd.C,v
retrieving revision 1.624
diff -c -r1.624 ddd.C
*** ddd.C       2001/04/26 14:33:17     1.624
--- ddd.C       2001/04/26 14:39:30
***************
*** 2503,2508 ****
--- 2503,2516 ----
      XtSetArg(args[arg], XmNargc,           original_argc); arg++;
      XtSetArg(args[arg], XmNargv,           original_argv); arg++;
  
+     // Forward toplevel geometry (as given by `-geometry') to command shell
+     String toplevel_geometry = 0;
+     XtVaGetValues(toplevel, XmNgeometry, &toplevel_geometry, XtPointer(0));
+     if (toplevel_geometry != 0)
+     {
+       XtSetArg(args[arg], XmNgeometry, toplevel_geometry); arg++;
+     }
+ 
      // Make command shell a popup shell.  
      // The toplevel window is never realized.
      command_shell = verify(XtCreatePopupShell((char *)"command_shell",

-- 
Andreas Zeller     Universitaet Passau
                   http://www.fmi.uni-passau.de/st/staff/zeller/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]