🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sources.bugs
Article #2224

Mazewar (from comp.sources.sun) is not ICCCM compliant

#2224
From: Brad Martinson
Date: Sat, 06 May 1989 00:07
61 lines
2596 bytes

+---- The recent posting of mazewar:
| From: mcgrew@aramis.rutgers.edu (Charles Mcgrew)
| Newsgroups: comp.sources.sun
| Subject: v01i002:  Sunview/X Mazewar , Part01/06
| Message-ID: <May.5.13.30.51.1989.12349@aramis.rutgers.edu>
| Date: 5 May 89 17:30:53 GMT
| Organization: Rutgers Univ., New Brunswick, N.J.
| 
| Submitted-by: kent@wsl.dec.com
| Posting-number: Volume 1, Issue 2
| Archive-name: mazewar/part01
+----

This X application is not ICCCM compliant and thus fails to work under
window managers which enforce the specs.  In particular, the hints
to the wm as to input events and focus are missing from this posting.
The diffs below to winX11.c (from part 6) fix this problem.


*** winX11.c	Fri May  5 16:50:10 1989
--- winX11.c.orig	Fri May  5 16:48:57 1989
***************
*** 385,392 ****
  						  bg_pixel, fg_pixel, 
  						  XDefaultDepth(dpy, screen));
  
!         wmhints.input = TRUE;
!         wmhints.flags = IconPixmapHint | IconMaskHint | InputHint;
          wmhints.icon_pixmap = icon_pixmap;
          wmhints.icon_mask = iconmask_pixmap;
          XSetWMHints(dpy, mwWindow, &wmhints);
--- 385,391 ----
  						  bg_pixel, fg_pixel, 
  						  XDefaultDepth(dpy, screen));
  
!         wmhints.flags = IconPixmapHint | IconMaskHint;
          wmhints.icon_pixmap = icon_pixmap;
          wmhints.icon_mask = iconmask_pixmap;
          XSetWMHints(dpy, mwWindow, &wmhints);
***************
*** 997,1004 ****
  		wmhints.icon_pixmap = icon_pixmap;
  	else
  		wmhints.icon_pixmap = icon_reverse_pixmap;
! 	wmhints.input = TRUE;
! 	wmhints.flags = IconPixmapHint | IconMaskHint | InputHint;
  	wmhints.icon_mask = iconmask_pixmap;
  	XSetWMHints(dpy, mwWindow, &wmhints);
  }
--- 996,1002 ----
  		wmhints.icon_pixmap = icon_pixmap;
  	else
  		wmhints.icon_pixmap = icon_reverse_pixmap;
! 	wmhints.flags = IconPixmapHint | IconMaskHint;
  	wmhints.icon_mask = iconmask_pixmap;
  	XSetWMHints(dpy, mwWindow, &wmhints);
  }

Other than this, it is as fun as ever...
Technical Details
Message-ID: <103446@sun.Eng.Sun.COM>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!dogie.macc.wisc.edu!uwvax!rutgers!apple!sun-barr!texsun!pitstop!sun!corvair!bradam

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!dogie.macc.wisc.edu!uwvax!rutgers!apple!sun-barr!texsun!pitstop!sun!corvair!bradam
From: bradam%corvair@Sun.COM (Brad Martinson)
Newsgroups: comp.sources.bugs
Subject: Mazewar (from comp.sources.sun) is not ICCCM compliant
Keywords: ICCCM, fix
Message-ID: <103446@sun.Eng.Sun.COM>
Date: 6 May 89 00:07:49 GMT
Sender: news@sun.Eng.Sun.COM
Reply-To: bradam@sun.UUCP (Brad Martinson)
Distribution: na
Organization: Sun Microsystems, Mountain View
Lines: 61