diff options
| author | Arslaan Pathan <[email protected]> | 2026-05-15 10:19:09 +1200 |
|---|---|---|
| committer | Arslaan Pathan <[email protected]> | 2026-05-15 10:19:09 +1200 |
| commit | 7c3585c3732079edc1094b9e7e1dd4885436c343 (patch) | |
| tree | 9d1c2a039eab95d93ef9f96e47bc4770b97481ae | |
| parent | 07b64f09a3b866520d8e4729f11f882780cdb6e3 (diff) | |
| download | simple-x11-window-main.tar.xz simple-x11-window-main.zip | |
| -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); |
