add version header

git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@428 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
NishiOwO
2025-10-20 08:33:21 +00:00
parent f1d7fe87bb
commit 768bb7327b
6 changed files with 48 additions and 14 deletions

View File

@@ -40,19 +40,19 @@ static void destroy_pixmap(MwLL handle) {
XFreePixmap(handle->display, handle->pixmap);
}
static void wait_map(MwLL handle){
static void wait_map(MwLL handle) {
XEvent* queue = NULL;
XEvent ev;
while(1){
XEvent ev;
while(1) {
XNextEvent(handle->display, &ev);
if(ev.type == MapNotify && ev.xmap.window == handle->window){
if(ev.type == MapNotify && ev.xmap.window == handle->window) {
break;
}else{
} else {
arrput(queue, ev);
}
}
while(arrlen(queue) > 0){
while(arrlen(queue) > 0) {
XPutBackEvent(handle->display, &queue[0]);
arrdel(queue, 0);
}