From 0000ef909248febd81c7a6aa070e08ab959dda61 Mon Sep 17 00:00:00 2001 From: Alessandro Iezzi Date: Fri, 16 May 2025 16:55:19 +0200 Subject: Enable the resize event --- src/main/ui/ui.h | 2 +- src/main/ui/x11/ui.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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; } -- cgit v1.2.3