diff options
| -rw-r--r-- | README.md | 3 | ||||
| -rw-r--r-- | main.c | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/README.md b/README.md new file mode 100644 index 0000000..0a1e1fc --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# simple-x11-window + +experiments with X11 @@ -7,6 +7,7 @@ int main() { Display* display = XOpenDisplay(NULL); if (display == NULL) { printf("cant\n"); + return 1; } Window window = XCreateSimpleWindow(display, DefaultRootWindow(display), 50, 50, 900, 600, 1, BlackPixel(display, 0), WhitePixel(display, 0)); XMapWindow(display, window); |
