diff options
author | 2025-05-16 16:55:19 +0200 | |
---|---|---|
committer | 2025-05-16 16:55:19 +0200 | |
commit | 0000ef909248febd81c7a6aa070e08ab959dda61 (patch) | |
tree | c33f6be8bee4e2cffc0d6623baa2c694be8d66f5 | |
parent | 56929fb2d368df8e1f1272eb51c0c86691c9416d (diff) | |
download | tris-0000ef909248febd81c7a6aa070e08ab959dda61.tar.gz tris-0000ef909248febd81c7a6aa070e08ab959dda61.zip |
Enable the resize event
-rw-r--r-- | src/main/ui/ui.h | 2 | ||||
-rw-r--r-- | src/main/ui/x11/ui.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/main/ui/ui.h b/src/main/ui/ui.h index 8d1b79c..90d8c80 100644 --- a/src/main/ui/ui.h +++ b/src/main/ui/ui.h @@ -21,7 +21,7 @@ #define __UI_H__ void ui_init(int w, int h); -void ui_loop(void (*draw_frame)()); +void ui_loop(void (*draw_frame)(void)); void ui_set_title(const char *title); #endif /* __UI_H__ */ diff --git a/src/main/ui/x11/ui.c b/src/main/ui/x11/ui.c index 7d52e2b..cf08ac0 100644 --- a/src/main/ui/x11/ui.c +++ b/src/main/ui/x11/ui.c @@ -61,7 +61,7 @@ ui_get_attributes(Window root, XVisualInfo *vi) Colormap colormap = XCreateColormap(display, root, vi->visual, AllocNone); XSetWindowAttributes swa; swa.colormap = colormap; - swa.event_mask = ExposureMask | KeyPressMask; + swa.event_mask = ExposureMask | KeyPressMask | StructureNotifyMask; return swa; } |