File: wmcalclock.patch

package info (click to toggle)
wmcalclock 1.25-10
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 428 kB
  • ctags: 148
  • sloc: ansic: 737; makefile: 82
file content (72 lines) | stat: -rw-r--r-- 1,467 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
*** 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];
  
  
--- 272,277 ----
***************
*** 451,457 ****
   	 *  to catch expose events, etc...
  	 *
  	 */
! 	if ( HasExecute == 0 || n>10){
  
  	    n = 0;
  
--- 450,456 ----
   	 *  to catch expose events, etc...
  	 *
  	 */
! 	if (n>10){
  
  	    n = 0;
  
***************
*** 722,734 ****
  	 *  Redraw and wait for next update 
  	 */
  	RedrawWindow();
! 	if( HasExecute == 1) {
! 	  usleep(DELAY);
! 	} else if( ShowSeconds == 1) {
! 	  usleep( 200000L);
! 	} else {
! 	  usleep( 500000L);
! 	}
  
  
       }
--- 721,727 ----
  	 *  Redraw and wait for next update 
  	 */
  	RedrawWindow();
! 	usleep(DELAY);
  
  
       }
***************
*** 817,823 ****
                  exit(-1);
              }
  	    strcpy(ExecuteCommand, argv[++i]);
- 	    HasExecute = 1;
  
          } else if (!strcmp(argv[i], "-g")){
  
--- 810,815 ----
***************
*** 975,981 ****
      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;
--- 967,972 ----