🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.x
Article #25159

V10R4 XTERM - bug in icon positioning ...

#25159
From: jmsellens
Date: Wed, 18 Feb 1987 00:44
26 lines
1659 bytes
If you don't specify a place for the icon, xterm puts its location at the
middle of the text window.  This doesn't work too well if you create
the window with its centre off screen - iconify the window and you
can't get it back (not easily at least).  This is what I did to
charproc.c at line 1632:

	if(screen->iconTwin.window) {
		XQueryWindow(screen->iconTwin.window, &wininfo);
		x = wininfo.x;
		y = wininfo.y;
	} else {
		x = twindow.x + (twindow.width - screen->iconVwin.width) / 2;
		y = twindow.y + (twindow.height - screen->iconVwin.height) / 2;
		IconGeometry(screen, &x, &y);
	}
#ifdef waterloo
	/* no matter what they ask for, don't let them set the location
	   for the icon off the screen */
	if ( x <= -screen->iconVwin.width+10 ) x = -screen->iconVwin.width+10;
	if ( x > DisplayWidth()-10 ) x = DisplayWidth()-10;
	if ( y <= -screen->iconVwin.height+10 ) y = -screen->iconVwin.height+10;
	if ( y > DisplayHeight()-10 ) y = DisplayHeight()-10;
#endif
	screen->iconVwin.window =
		XCreateWindow( RootWindow, x, y, 1, 1, screen->borderwidth,
			       screen->bordertile, screen->bgndtile );
Technical Details
Message-ID: <8702181407.AA25577@ATHENA>
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!cbatt!ucbvax!watmath.waterloo.edu!jmsellens

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!cbatt!ucbvax!watmath.waterloo.edu!jmsellens
From: jmsellens@watmath.waterloo.edu.UUCP
Newsgroups: comp.windows.x
Subject: V10R4 XTERM - bug in icon positioning ...
Message-ID: <8702181407.AA25577@ATHENA>
Date: Tue, 17-Feb-87 19:44:14 EST
Article-I.D.: ATHENA.8702181407.AA25577
Posted: Tue Feb 17 19:44:14 1987
Date-Received: Thu, 19-Feb-87 19:29:04 EST
Sender: daemon@ucbvax.BERKELEY.EDU
Organization: The ARPA Internet
Lines: 26