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
|
diff -Naur unclutter-1.09.orig/unclutter.c unclutter-1.09/unclutter.c
--- unclutter-1.09.orig/unclutter.c 2007-02-05 18:13:12.000000000 -0500
+++ unclutter-1.09/unclutter.c 2016-07-22 02:27:29.013435877 -0400
@@ -37,14 +37,15 @@
#include <X11/Xutil.h>
#include <X11/Xproto.h>
#include <stdio.h>
+#include <stdlib.h>
#include "vroot.h"
char *progname;
-pexit(str)char *str;{
+void pexit(str)char *str;{
fprintf(stderr,"%s: %s\n",progname,str);
exit(1);
}
-usage(){
+void usage(){
pexit("usage:\n\
-display <display>\n\
-idle <seconds> time between polls to detect idleness.\n\
@@ -87,7 +88,7 @@
* return true if window has a wm_name and the start of it matches
* one of the given names to avoid
*/
-nameinlist(display,window)
+int nameinlist(display,window)
Display *display;
Window window;
{
@@ -109,7 +110,7 @@
* return true if window has a wm_name and one of the given names to avoid
* matches anywhere in that string
*/
-matchinlist(display,window)
+int matchinlist(display,window)
Display *display;
Window window;
{
@@ -131,7 +132,7 @@
/*
* create a small 1x1 cursor with all pixels masked out on the given screen.
*/
-createnullcursor(display,root)
+Cursor createnullcursor(display,root)
Display *display;
Window root;
{
@@ -155,7 +156,7 @@
return cursor;
}
-main(argc,argv)char **argv;{
+int main(argc,argv)int argc;char **argv;{
Display *display;
int screen,oldx = -99,oldy = -99,numscreens;
int doroot = 0, jitter = 0, idletime = 5, usegrabmethod = 0, waitagain = 0,
diff -Naur unclutter-1.09.orig/vroot.h unclutter-1.09/vroot.h
--- unclutter-1.09.orig/vroot.h 2007-02-05 17:52:40.000000000 -0500
+++ unclutter-1.09/vroot.h 2016-07-22 02:30:08.431426449 -0400
@@ -40,6 +40,7 @@
static Window
VirtualRootWindow(dpy, screen)
Display *dpy;
+int screen;
{
static Display *save_dpy = (Display *)0;
static int save_screen = -1;
|