xdemo.c
changeset 27 81a574d60c15
parent 9 c3fecc82ade6
child 48 b94d657a9acb
equal deleted inserted replaced
26:d227047a3e88 27:81a574d60c15
     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;