This commit is contained in:
NaiJi ✨ 2026-06-06 23:30:07 -04:00
commit d3371da3fc
3 changed files with 18 additions and 0 deletions

1
build Executable file
View File

@ -0,0 +1 @@
gcc main.c -g -o ../build/main -lX11

16
main.c Normal file
View File

@ -0,0 +1,16 @@
#include <stdio.h>
#include <unistd.h>
#include <X11/Xlib.h>
int main()
{
Display *display = XOpenDisplay(NULL);
Window main_window = XDefaultRootWindow(display);
Window window = XCreateSimpleWindow(display, main_window, 0, 0, 250, 250, 1, 0, 0x00aade87);
XMapWindow(display, window);
XFlush(display);
for(;;) { sleep(1); }
return 0;
}

1
run Executable file
View File

@ -0,0 +1 @@
./../build/main