From 19eec89b603e9fee81039c73a6e9a54fbb7d6353 Mon Sep 17 00:00:00 2001 From: NishiOwO Date: Sun, 28 Sep 2025 04:09:25 +0000 Subject: [PATCH] a git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@7 b9cfdab3-6d41-4d17-bbe4-086880011989 --- include/Milsko/LowLevel.h | 1 + src/x11.c | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/include/Milsko/LowLevel.h b/include/Milsko/LowLevel.h index 2dbbaf1..14cd4ac 100644 --- a/include/Milsko/LowLevel.h +++ b/include/Milsko/LowLevel.h @@ -26,5 +26,6 @@ void MilskoLLPolygon(HMILSKO handle, MilskoPoint* points, int points_count, HMILSKOCOLOR MilskoLLAllocColor(HMILSKO handle, int r, int g, int b); void MilskoLLGetXYWH(HMILSKO handle, int* x, int* y, unsigned int* w, unsigned int* h); int MilskoLLPending(HMILSKO handle); +void MilskoLLNextEvent(HMILSKO handle); #endif diff --git a/src/x11.c b/src/x11.c index f579765..a373fcc 100644 --- a/src/x11.c +++ b/src/x11.c @@ -84,3 +84,9 @@ int MilskoLLPending(HMILSKO handle) { } return 0; } + +void MilskoLLNextEvent(HMILSKO handle) { + XEvent ev; + if(XCheckWindowEvent(handle->display, handle->window, mask, &ev)) { + } +}