blob: b877b31882fdaa3091f011de710c94a169620f7c (
plain)
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
|
#include <X11/Xlib.h>
#include <X11/Xutil.h>
char hello[]="hello.world";
char hi[]="Hi";
main(argc, argv)
int argc;
char **argv;
{
Display *mydisplay;
Window mywindow;
GC mygc;
XEvent myevent;
KeySym mykey;
XSizeHints myhint;
int myscreen;
unsigned long myforeground, mybackground;
int i;
char text[10];
int done;
mydisplay=XOpenDisplay("");
myscreen=DefaultScreen(mydisplay);
myforeground=BlackPixel(mydisplay, myscreen);
mywindow=XCreateSimpleWindow(mydisplay,
DefaultRootWindow(mydisplay),
myhint.x, myhint.y, myhint.width, myhint.height, 5,
myforeground, mybackground );
XDestroyWindow(mydisplay, mywindow);
XCloseDisplay(mydisplay);
exit(0);
}
|