Article View: comp.windows.x
Article #25115xterm (6.6A2) icon geometry parsing fix
From: jon
Date: Fri, 13 Mar 1987 23:05
Date: Fri, 13 Mar 1987 23:05
27 lines
1493 bytes
1493 bytes
Xterm incorrectly deals with return values from XParseGeometry when figuring out where to place the icon (if you specified an icon geometry spec on the command line and gave a negative x or y offset). It assumes that offset values returned by XParseGeometry are absolute values, but in truth they can negative. -- Jon The following trival change to the IconGeometry procedure in misc.c fixes this. From: if((i & XValue) && (i & XNegative)) *ix = DisplayWidth() - *ix - screen->iconVwin.width - 2 * screen->borderwidth; if((i & YValue) && (i & YNegative)) *iy = DisplayHeight() - *iy - screen->iconVwin.height - 2 * screen->borderwidth; To: if((i & XValue) && (i & XNegative)) *ix = DisplayWidth() + *ix - screen->iconVwin.width - 2 * screen->borderwidth; if((i & YValue) && (i & YNegative)) *iy = DisplayHeight() + *iy - screen->iconVwin.height - 2 * screen->borderwidth;
Technical Details
Message-ID:
<8703132305.AA00461@corwin.s1.gov>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!water!watnot!watmath!clyde!cbatt!ucbvax!INTREPID.S1.GOV!jonShow Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watnot!watmath!clyde!cbatt!ucbvax!INTREPID.S1.GOV!jon From: jon@INTREPID.S1.GOV.UUCP Newsgroups: comp.windows.x Subject: xterm (6.6A2) icon geometry parsing fix Message-ID: <8703132305.AA00461@corwin.s1.gov> Date: Fri, 13-Mar-87 18:05:35 EST Article-I.D.: corwin.8703132305.AA00461 Posted: Fri Mar 13 18:05:35 1987 Date-Received: Sat, 14-Mar-87 15:30:18 EST Sender: daemon@ucbvax.BERKELEY.EDU Distribution: world Organization: The ARPA Internet Lines: 27