2011-03-25 18:45:13 +00:00
|
|
|
*** fastCalClock.c Thu Jul 1 10:08:07 1999
|
|
|
|
--- wmCalClock.c Thu Jul 1 09:38:53 1999
|
|
|
|
***************
|
|
|
|
*** 272,278 ****
|
|
|
|
int GotFirstClick2, GotDoubleClick2;
|
|
|
|
int GotFirstClick3, GotDoubleClick3;
|
|
|
|
int DblClkDelay;
|
|
|
|
- int HasExecute = 0; /* controls perf optimization */
|
|
|
|
char ExecuteCommand[1024];
|
2014-10-05 15:29:59 +00:00
|
|
|
|
|
|
|
|
2011-03-25 18:45:13 +00:00
|
|
|
--- 272,277 ----
|
|
|
|
***************
|
|
|
|
*** 451,457 ****
|
|
|
|
* to catch expose events, etc...
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
! if ( HasExecute == 0 || n>10){
|
2014-10-05 15:29:59 +00:00
|
|
|
|
2011-03-25 18:45:13 +00:00
|
|
|
n = 0;
|
2014-10-05 15:29:59 +00:00
|
|
|
|
2011-03-25 18:45:13 +00:00
|
|
|
--- 450,456 ----
|
|
|
|
* to catch expose events, etc...
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
! if (n>10){
|
2014-10-05 15:29:59 +00:00
|
|
|
|
2011-03-25 18:45:13 +00:00
|
|
|
n = 0;
|
2014-10-05 15:29:59 +00:00
|
|
|
|
2011-03-25 18:45:13 +00:00
|
|
|
***************
|
|
|
|
*** 722,734 ****
|
2014-10-05 15:29:59 +00:00
|
|
|
* Redraw and wait for next update
|
2011-03-25 18:45:13 +00:00
|
|
|
*/
|
|
|
|
RedrawWindow();
|
|
|
|
! if( HasExecute == 1) {
|
|
|
|
! usleep(DELAY);
|
|
|
|
! } else if( ShowSeconds == 1) {
|
|
|
|
! usleep( 200000L);
|
|
|
|
! } else {
|
|
|
|
! usleep( 500000L);
|
|
|
|
! }
|
2014-10-05 15:29:59 +00:00
|
|
|
|
|
|
|
|
2011-03-25 18:45:13 +00:00
|
|
|
}
|
|
|
|
--- 721,727 ----
|
2014-10-05 15:29:59 +00:00
|
|
|
* Redraw and wait for next update
|
2011-03-25 18:45:13 +00:00
|
|
|
*/
|
|
|
|
RedrawWindow();
|
|
|
|
! usleep(DELAY);
|
2014-10-05 15:29:59 +00:00
|
|
|
|
|
|
|
|
2011-03-25 18:45:13 +00:00
|
|
|
}
|
|
|
|
***************
|
|
|
|
*** 817,823 ****
|
|
|
|
exit(-1);
|
|
|
|
}
|
|
|
|
strcpy(ExecuteCommand, argv[++i]);
|
|
|
|
- HasExecute = 1;
|
2014-10-05 15:29:59 +00:00
|
|
|
|
2011-03-25 18:45:13 +00:00
|
|
|
} else if (!strcmp(argv[i], "-g")){
|
2014-10-05 15:29:59 +00:00
|
|
|
|
2011-03-25 18:45:13 +00:00
|
|
|
--- 810,815 ----
|
|
|
|
***************
|
|
|
|
*** 975,981 ****
|
|
|
|
char Command[512];
|
2014-10-05 15:29:59 +00:00
|
|
|
|
|
|
|
|
2011-03-25 18:45:13 +00:00
|
|
|
- if( HasExecute == 0) return; /* no command specified. Ignore clicks. */
|
|
|
|
DblClkDelay = 0;
|
|
|
|
if ((xev->button == Button1) && (xev->type == ButtonPress)){
|
|
|
|
if (GotFirstClick1) GotDoubleClick1 = 1;
|
|
|
|
--- 967,972 ----
|