equal
deleted
inserted
replaced
8 #include <X11/Xlib.h> |
8 #include <X11/Xlib.h> |
9 |
9 |
10 int main (int argc, char **argv) |
10 int main (int argc, char **argv) |
11 { |
11 { |
12 Window w = 0; |
12 Window w = 0; |
|
13 |
13 Display *dpy = XOpenDisplay (NULL); |
14 Display *dpy = XOpenDisplay (NULL); |
|
15 |
14 XEvent xev; |
16 XEvent xev; |
|
17 |
15 int active; |
18 int active; |
16 |
19 |
17 if (dpy == NULL) { |
20 if (dpy == NULL) { |
18 printf ("Error opening localhost:0\n"); |
21 printf ("Error opening localhost:0\n"); |
19 return EXIT_SUCCESS; |
22 return EXIT_SUCCESS; |