--- ./Src/wmCalClock.c.00 2007-02-20 08:24:29.000000000 +0100 +++ ./Src/wmCalClock.c 2007-02-20 08:24:44.000000000 +0100 @@ -276,7 +276,6 @@ int GotFirstClick2, GotDoubleClick2; int GotFirstClick3, GotDoubleClick3; int DblClkDelay; -int HasExecute = 0; /* controls perf optimization */ char ExecuteCommand[1024]; @@ -455,7 +454,7 @@ * to catch expose events, etc... * */ - if ( HasExecute == 0 || n>10){ + if (n>10){ n = 0; @@ -726,13 +725,7 @@ * Redraw and wait for next update */ RedrawWindow(); - if( HasExecute == 1) { - usleep(DELAY); - } else if( ShowSeconds == 1) { - usleep( 200000L); - } else { - usleep( 500000L); - } + usleep(DELAY); } @@ -821,7 +814,6 @@ exit(-1); } strcpy(ExecuteCommand, argv[++i]); - HasExecute = 1; } else if (!strcmp(argv[i], "-g")){ @@ -979,7 +971,6 @@ char Command[512]; - if( HasExecute == 0) return; /* no command specified. Ignore clicks. */ DblClkDelay = 0; if ((xev->button == Button1) && (xev->type == ButtonPress)){ if (GotFirstClick1) GotDoubleClick1 = 1;