summaryrefslogtreecommitdiffstats
path: root/Tests/X11/X11.c
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/X11/X11.c')
-rw-r--r--Tests/X11/X11.c38
1 files changed, 38 insertions, 0 deletions
diff --git a/Tests/X11/X11.c b/Tests/X11/X11.c
new file mode 100644
index 0000000..b877b31
--- /dev/null
+++ b/Tests/X11/X11.c
@@ -0,0 +1,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);
+}
+
+