tlastran@esunix.UUCP (Tom LaStrange) (07/08/88)
#! /bin/sh # This is a shell archive, meaning: # 1. Remove everything above the #! /bin/sh line. # 2. Save the resulting test in a file # 3. Execute the file with /bin/sh (not csh) to create the files: # #README #patches # # Created by tlastran (Tom LaStrange) on Thu Jul 7 11:25:03 MDT 1988 # if test -f 'README' then echo shar: will not over-write existing file "README" else echo extracting "README" sed 's/^X//' >README <<'SHAR_EOF' XThe following things have been fixed/added since Revision 3.1 X X1. Twm will now load and unload colormaps for windows. X X2. I got rid of of the grabbing and ungrabbing of the keyboard X in the enter and leave notify event handling routines. This was X an earlier attempt to fix the typing latency problem. X XI've gotten some patches to put the gray bordered windows back in if Xtwm is running in monochrome. I've also gotten patches to that the twm Xframe windows can get the client window properties. X XI haven't had time to get these things installed. I'm in the process Xof changing jobs and have been pretty busy. X X-- XTom LaStrange XEvans & Sutherland Computer Corporation X XUUCP Address: {ihnp4,seismo}!utah-cs!utah-gr!uplherc!esunix!tlastran XAlternate: {ihnp4,decvax}!decwrl!esunix!tlastran SHAR_EOF if test 803 -ne "`wc -c < README`" then echo shar: error transmitting "README" '(should have been 803 characters)' fi fi if test -f 'patches' then echo shar: will not over-write existing file "patches" else echo extracting "patches" sed 's/^X//' >patches <<'SHAR_EOF' Xdiff -c old/add_window.c new/add_window.c X*** old/add_window.c Thu Jul 7 11:13:23 1988 X--- new/add_window.c Thu Jul 7 11:14:35 1988 X*************** X*** 25,31 **** X X /********************************************************************** X * X! * $Header: add_window.c,v 1.27 88/06/17 06:48:22 tlastran Exp $ X * X * Add a new window, put the titlbar and other stuff around X * the window X--- 25,31 ---- X X /********************************************************************** X * X! * $Header: add_window.c,v 1.28 88/06/28 10:49:19 tlastran Exp $ X * X * Add a new window, put the titlbar and other stuff around X * the window X*************** X*** 36,42 **** X X #ifndef lint X static char RCSinfo[]= X! "$Header: add_window.c,v 1.27 88/06/17 06:48:22 tlastran Exp $"; X #endif lint X X #include <stdio.h> X--- 36,42 ---- X X #ifndef lint X static char RCSinfo[]= X! "$Header: add_window.c,v 1.28 88/06/28 10:49:19 tlastran Exp $"; X #endif lint X X #include <stdio.h> X*************** X*** 117,122 **** X--- 117,129 ---- X fprintf(stderr, " name = \"%s\"\n", tmp_win->name); X #endif X tmp_win->wmhints = XGetWMHints(dpy, tmp_win->w); X+ /* X+ if (tmp_win->wmhints && (tmp_win->wmhints->flags & WindowGroupHint)) X+ printf("flags = 0x%x, group = 0x%x\n", X+ tmp_win->wmhints->flags, X+ tmp_win->wmhints->window_group); X+ */ X+ X if (XGetNormalHints(dpy, tmp_win->w, &tmp_win->hints) == 0) X tmp_win->hints.flags = 0; X Xdiff -c old/events.c new/events.c X*** old/events.c Thu Jul 7 11:13:27 1988 X--- new/events.c Thu Jul 7 11:14:40 1988 X*************** X*** 25,31 **** X X /*********************************************************************** X * X! * $Header: events.c,v 1.59 88/06/17 06:48:15 tlastran Exp $ X * X * twm event handling X * X--- 25,31 ---- X X /*********************************************************************** X * X! * $Header: events.c,v 1.61 88/07/07 11:04:38 tlastran Exp $ X * X * twm event handling X * X*************** X*** 35,41 **** X X #ifndef lint X static char RCSinfo[]= X! "$Header: events.c,v 1.59 88/06/17 06:48:15 tlastran Exp $"; X #endif X X #include <stdio.h> X--- 35,41 ---- X X #ifndef lint X static char RCSinfo[]= X! "$Header: events.c,v 1.61 88/07/07 11:04:38 tlastran Exp $"; X #endif X X #include <stdio.h> X*************** X*** 969,974 **** X--- 969,975 ---- X XUnmapWindow(dpy, Focus->hilite_w); X X XMapWindow(dpy, tmp_win->hilite_w); X+ XInstallColormap(dpy, tmp_win->attr.colormap); X /* X XSetWindowBorder(dpy, tmp_win->frame, Foreground); X XSetWindowBorder(dpy, tmp_win->title_w, Foreground); X*************** X*** 976,982 **** X if (TitleFocus) X XSetInputFocus(dpy, tmp_win->w, RevertToPointerRoot, X CurrentTime); X- XUngrabKeyboard(dpy, CurrentTime); X Focus = tmp_win; X } X if (enter_flag == FALSE && tmp_win->auto_raise) X--- 977,982 ---- X*************** X*** 1058,1069 **** X if (event.xcrossing.detail != NotifyInferior) X { X XUnmapWindow(dpy, tmp_win->hilite_w); X /* X XSetWindowBorderPixmap(dpy, tmp_win->frame, GrayTile); X XSetWindowBorderPixmap(dpy, tmp_win->title_w, GrayTile); X */ X- XGrabKeyboard(dpy, Root, True, GrabModeAsync, X- GrabModeAsync, CurrentTime); X if (TitleFocus) X XSetInputFocus(dpy, Root, RevertToPointerRoot, X CurrentTime); X--- 1058,1068 ---- X if (event.xcrossing.detail != NotifyInferior) X { X XUnmapWindow(dpy, tmp_win->hilite_w); X+ XUninstallColormap(dpy, tmp_win->attr.colormap); X /* X XSetWindowBorderPixmap(dpy, tmp_win->frame, GrayTile); X XSetWindowBorderPixmap(dpy, tmp_win->title_w, GrayTile); X */ X if (TitleFocus) X XSetInputFocus(dpy, Root, RevertToPointerRoot, X CurrentTime); Xdiff -c old/parse.c new/parse.c X*** old/parse.c Thu Jul 7 11:13:25 1988 X--- new/parse.c Thu Jul 7 11:14:38 1988 X*************** X*** 25,31 **** X X /*********************************************************************** X * X! * $Header: parse.c,v 1.15 88/05/31 07:43:53 tlastran Exp $ X * X * parse the .twmrc file X * X--- 25,31 ---- X X /*********************************************************************** X * X! * $Header: parse.c,v 1.16 88/07/07 11:04:31 tlastran Exp $ X * X * parse the .twmrc file X * X*************** X*** 35,41 **** X X #ifndef lint X static char RCSinfo[]= X! "$Header: parse.c,v 1.15 88/05/31 07:43:53 tlastran Exp $"; X #endif X X #include <stdio.h> X--- 35,41 ---- X X #ifndef lint X static char RCSinfo[]= X! "$Header: parse.c,v 1.16 88/07/07 11:04:31 tlastran Exp $"; X #endif X X #include <stdio.h> X*************** X*** 114,120 **** X *********************************************************************** X */ X X! char X TwmInput() X { X while (ptr == len) X--- 114,120 ---- X *********************************************************************** X */ X X! int X TwmInput() X { X while (ptr == len) X*************** X*** 127,133 **** X ptr = 0; X len = strlen(buff); X } X! return (buff[ptr++]); X } X X /*********************************************************************** X--- 127,133 ---- X ptr = 0; X len = strlen(buff); X } X! return ((int)buff[ptr++]); X } X X /*********************************************************************** Xdiff -c old/version.c new/version.c X*** old/version.c Thu Jul 7 11:13:42 1988 X--- new/version.c Thu Jul 7 11:15:05 1988 X*************** X*** 25,31 **** X X /*********************************************************************** X * X! * $Header: version.c,v 3.1 88/06/17 06:44:19 tlastran Exp $ X * X * twm version number X * X--- 25,31 ---- X X /*********************************************************************** X * X! * $Header: version.c,v 3.2 88/07/07 09:49:44 tlastran Exp $ X * X * twm version number X * X*************** X*** 34,40 **** X ***********************************************************************/ X X static char RCSinfo[]= X! "$Header: version.c,v 3.1 88/06/17 06:44:19 tlastran Exp $"; X X! char *Revision = "$Revision: 3.1 $"; X! char *Date = "$Date: 88/06/17 06:44:19 $"; X--- 34,40 ---- X ***********************************************************************/ X X static char RCSinfo[]= X! "$Header: version.c,v 3.2 88/07/07 09:49:44 tlastran Exp $"; X X! char *Revision = "$Revision: 3.2 $"; X! char *Date = "$Date: 88/07/07 09:49:44 $"; SHAR_EOF if test 6374 -ne "`wc -c < patches`" then echo shar: error transmitting "patches" '(should have been 6374 characters)' fi fi # end of shell archive exit 0