dockapps/wmcalclockkbd/src/wmcalclock.patch

73 lines
1.4 KiB
Diff
Raw Normal View History

*** 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];
2017-02-21 00:16:01 +00:00
--- 272,277 ----
***************
*** 451,457 ****
* to catch expose events, etc...
*
*/
! if ( HasExecute == 0 || n>10){
2017-02-21 00:16:01 +00:00
n = 0;
2017-02-21 00:16:01 +00:00
--- 450,456 ----
* to catch expose events, etc...
*
*/
! if (n>10){
2017-02-21 00:16:01 +00:00
n = 0;
2017-02-21 00:16:01 +00:00
***************
*** 722,734 ****
2017-02-21 00:16:01 +00:00
* Redraw and wait for next update
*/
RedrawWindow();
! if( HasExecute == 1) {
! usleep(DELAY);
! } else if( ShowSeconds == 1) {
! usleep( 200000L);
! } else {
! usleep( 500000L);
! }
2017-02-21 00:16:01 +00:00
}
--- 721,727 ----
2017-02-21 00:16:01 +00:00
* Redraw and wait for next update
*/
RedrawWindow();
! usleep(DELAY);
2017-02-21 00:16:01 +00:00
}
***************
*** 817,823 ****
exit(-1);
}
strcpy(ExecuteCommand, argv[++i]);
- HasExecute = 1;
2017-02-21 00:16:01 +00:00
} else if (!strcmp(argv[i], "-g")){
2017-02-21 00:16:01 +00:00
--- 810,815 ----
***************
*** 975,981 ****
char Command[512];
2017-02-21 00:16:01 +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 ----