bradam%corvair@Sun.COM (Brad Martinson) (05/06/89)
+---- 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...