map window points

git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@58 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
Nishi 2025-09-29 05:58:28 +00:00
commit 29b344f831
6 changed files with 61 additions and 10 deletions

View file

@ -105,7 +105,7 @@ int MwLLPending(MwLL handle) {
void MwLLNextEvent(MwLL handle) {
XEvent ev;
if(XCheckWindowEvent(handle->display, handle->window, mask, &ev)) {
while(XCheckWindowEvent(handle->display, handle->window, mask, &ev)) {
if(ev.type == Expose) {
MwLLDispatch(handle, draw);
} else if(ev.type == ButtonPress) {
@ -118,6 +118,8 @@ void MwLLNextEvent(MwLL handle) {
MwLLDispatch(handle, up);
MwLLDispatch(handle, draw);
}
} else if(ev.type == ConfigureNotify) {
MwLLDispatch(handle, resize);
}
}
}