commit d50e9c3
uint
·
2026-06-03 17:26:50 +0000 UTC
parent 852cf31
Add basic window test
2 files changed,
+26,
-0
+11,
-0
1@@ -0,0 +1,11 @@
2+CC = cc
3+CFLAGS = -std=c99 -Wall -Wextra -O2
4+LIBS = -lX11
5+
6+SRC = main.c \
7+ ../../mauswin.c \
8+ ../../maus_x11.c
9+
10+all:
11+ ${CC} ${SRC} -o basic-window ${CFLAGS} ${LIBS}
12+
+15,
-0
1@@ -0,0 +1,15 @@
2+#define BACKEND_X11
3+#include "../../mauswin.h"
4+
5+int main(void)
6+{
7+ MausWindow* mw = maus_init("basic window", 0, 0, 800, 600);
8+ maus_create_window(mw);
9+
10+ XEvent e;
11+ for (;;)
12+ XNextEvent(mw->display, &e);
13+
14+ maus_close(mw);
15+}
16+