|
|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T x
Length: 949 (0x3b5)
Types: TextFile
Names: »xrefresh.c«
└─⟦a0efdde77⟧ Bits:30001252 EUUGD11 Tape, 1987 Spring Conference Helsinki
└─⟦526ad3590⟧ »EUUGD11/gnu-31mar87/X.V10.R4.tar.Z«
└─⟦2109abc41⟧
└─⟦this⟧ »./X.V10R4/xrefresh/xrefresh.c«
#include <X/mit-copyright.h>
#include <X/Xlib.h>
#include <stdio.h>
/*
* Copyright 1985, Massachusetts Institute of Technology.
* This program just throws up a window over the whole screen, causing
* exposure events to be generated on all windows. This may be useful
* to cause the whole screen to be repainted when it has somehow gotten
* trashed.
*/
#ifndef lint
static char *rcsid_xrefresh_c = "$Header: xrefresh.c,v 10.7 86/11/19 19:47:57 jg Rel $";
#endif
main(argc, argv)
int argc;
char **argv;
{
Window w;
if (XOpenDisplay(argc ? argv[1] : "\0") == NULL) {
fprintf(stderr, "%s: Can't open display '%s'\n",
argv[0], XDisplayName(argc ? argv[1] : "\0"));
exit(1);
}
w = XCreateWindow(RootWindow, 0, 0, DisplayWidth(), DisplayHeight(),
0, (Pixmap) 0, (Pixmap) 0);
XMapWindow(w); /* put it up on the screen */
XDestroyWindow(w); /* throw it away */
XFlush(); /* and make sure the server sees it*/
}