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 /main.c | |
| parent | 07b64f09a3b866520d8e4729f11f882780cdb6e3 (diff) | |
| download | simple-x11-window-main.tar.xz simple-x11-window-main.zip | |
Diffstat (limited to 'main.c')
| -rw-r--r-- | main.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); |
