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)) { + } +}