Annotation of 43BSD/contrib/X/xrefresh/xrefresh.c, revision 1.1

1.1     ! root        1: #include <X/mit-copyright.h>
        !             2: 
        !             3: #include <X/Xlib.h>
        !             4: #include <stdio.h>
        !             5: /*
        !             6:  * Copyright 1985, Massachusetts Institute of Technology.
        !             7:  * This program just throws up a window over the whole screen, causing
        !             8:  * exposure events to be generated on all windows.  This may be useful
        !             9:  * to cause the whole screen to be repainted when it has somehow gotten
        !            10:  * trashed.
        !            11:  */
        !            12: #ifndef lint
        !            13: static char *rcsid_xrefresh_c = "$Header: xrefresh.c,v 10.5 86/02/01 16:16:40 tony Rel $";
        !            14: #endif
        !            15: 
        !            16: main(argc, argv)
        !            17: int argc;
        !            18: char **argv;
        !            19: {
        !            20:        Window w;
        !            21: 
        !            22:        if (XOpenDisplay(argc ? argv[1] : "\0") == NULL) 
        !            23:                fprintf (stderr, "Could not open Display!\n");
        !            24: 
        !            25:        w = XCreateWindow(RootWindow, 0, 0, DisplayWidth(), DisplayHeight(),
        !            26:                0, (Pixmap) 0, (Pixmap) 0);
        !            27:        XMapWindow(w);                  /* put it up on the screen      */
        !            28:        XDestroyWindow(w);              /* throw it away                */
        !            29: 
        !            30:        XFlush();                       /* and make sure the server sees it*/
        !            31: }
        !            32:        

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.