diff --git a/include/Milsko/LowLevel.h b/include/Milsko/LowLevel.h index 42cd225..90bd765 100644 --- a/include/Milsko/LowLevel.h +++ b/include/Milsko/LowLevel.h @@ -22,6 +22,7 @@ MILSKODECL void MilskoLLDestroy(HMILSKOLL handle); MILSKODECL void MilskoLLPolygon(HMILSKOLL handle, MilskoPoint* points, int points_count, HMILSKOCOLOR color); MILSKODECL HMILSKOCOLOR MilskoLLAllocColor(HMILSKOLL handle, int r, int g, int b); MILSKODECL void MilskoLLGetXYWH(HMILSKOLL handle, int* x, int* y, unsigned int* w, unsigned int* h); +MILSKODECL void MilskoLLSetXYWH(HMILSKOLL handle, int x, int y, unsigned int w, unsigned int h); MILSKODECL int MilskoLLPending(HMILSKOLL handle); MILSKODECL void MilskoLLNextEvent(HMILSKOLL handle); MILSKODECL void MilskoLLSleep(int ms); diff --git a/src/x11.c b/src/x11.c index 81b4818..900153a 100644 --- a/src/x11.c +++ b/src/x11.c @@ -70,6 +70,10 @@ void MilskoLLGetXYWH(HMILSKOLL handle, int* x, int* y, unsigned int* w, unsigned *h = handle->height; } +void MilskoLLSetXYWH(HMILSKOLL handle, int x, int y, unsigned int w, unsigned int h) { + XMoveResizeWindow(handle->display, handle->window, x, y, w, h); +} + void MilskoLLFreeColor(HMILSKOCOLOR color) { free(color); }