kucharsk@number6.Solbourne.COM (Bill Kucharski) (03/22/90)
Submitted-by: kucharsk@number6.Solbourne.COM (Bill Kucharski) Posting-number: Volume 6, Issue 40 Archive-name: xbv/patch1 The version of xbv which was posted to comp.sources.x was an older one which had a bug in which unmaskable events (MappingNotify, for one) would cause the bitmap window to disappear. The patch enclosed fixes this problem. *** patchlevel.h.orig Wed Mar 21 10:32:06 1990 --- patchlevel.h Wed Mar 21 10:32:12 1990 Prereq: 1 *************** *** 1 **** ! #define PATCHLEVEL 1 --- 1 ---- ! #define PATCHLEVEL 2 *** xbv.c.orig Wed Mar 21 10:31:41 1990 --- xbv.c Wed Mar 21 10:31:27 1990 *************** *** 315,321 **** XSelectInput(dpy, wind, ButtonPressMask); XMapRaised(dpy, wind); /* map window */ ! XNextEvent(dpy, &event); /* wait for ButtonPress event */ /* button click - exit program */ --- 315,327 ---- XSelectInput(dpy, wind, ButtonPressMask); XMapRaised(dpy, wind); /* map window */ ! ! while (1) { ! XNextEvent(dpy, &event); /* wait for ButtonPress event */ ! ! if (event.type == ButtonPress) ! break; ! } /* button click - exit program */ -- =============================================================================== | ARPA: kucharsk@Solbourne.COM | William Kucharski | | uucp: ...!{boulder,sun,uunet}!stan!kucharsk | Solbourne Computer, Inc. | = The opinions above are mine alone and NOT those of Solbourne Computer, Inc. = dan ----------------------------------------------------------- O'Reilly && Associates argv@sun.com / argv@ora.com 632 Petaluma Ave, Sebastopol, CA 95472 800-338-NUTS, in CA: 800-533-NUTS, FAX 707-829-0104 Opinions expressed reflect those of the author only.