1 *** fastCalClock.c Thu Jul 1 10:08:07 1999
2 --- wmCalClock.c Thu Jul 1 09:38:53 1999
5 int GotFirstClick2, GotDoubleClick2;
6 int GotFirstClick3, GotDoubleClick3;
8 - int HasExecute = 0; /* controls perf optimization */
9 char ExecuteCommand[1024];
15 * to catch expose events, etc...
18 ! if ( HasExecute == 0 || n>10){
23 * to catch expose events, etc...
32 * Redraw and wait for next update
35 ! if( HasExecute == 1) {
37 ! } else if( ShowSeconds == 1) {
46 * Redraw and wait for next update
57 strcpy(ExecuteCommand, argv[++i]);
60 } else if (!strcmp(argv[i], "-g")){
68 - if( HasExecute == 0) return; /* no command specified. Ignore clicks. */
70 if ((xev->button == Button1) && (xev->type == ButtonPress)){
71 if (GotFirstClick1) GotDoubleClick1 = 1;