summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main/ui/x11/ui.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main/ui/x11/ui.c b/src/main/ui/x11/ui.c
index cb4401f..8bdd93c 100644
--- a/src/main/ui/x11/ui.c
+++ b/src/main/ui/x11/ui.c
@@ -106,6 +106,12 @@ ui_on_expose(XEvent event, void (*draw_frame)())
glXSwapBuffers(display, window);
}
+static void
+ui_on_resize(XEvent event)
+{
+ if (event.type != ConfigureNotify) return;
+}
+
void
ui_loop(void (*draw_frame)())
{
@@ -113,6 +119,7 @@ ui_loop(void (*draw_frame)())
while (1) {
XNextEvent(display, &event);
ui_on_expose(event, draw_frame);
+ ui_on_resize(event);
if (event.type == KeyPress) {
break;
}