aboutsummaryrefslogtreecommitdiff
path: root/src/window
diff options
context:
space:
mode:
Diffstat (limited to 'src/window')
-rw-r--r--src/window/window.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/window/window.c b/src/window/window.c
index 2efb161..097ad76 100644
--- a/src/window/window.c
+++ b/src/window/window.c
@@ -1839,7 +1839,7 @@ void mgl_window_set_size_limits(mgl_window *self, mgl_vec2i minimum, mgl_vec2i m
mgl_context *context = mgl_get_context();
XSetWMNormalHints(context->connection, self->window, size_hints);
XFree(size_hints);
- XSync(context->connection, False);
+ XFlush(context->connection);
} else {
fprintf(stderr, "mgl warning: failed to set window size hints\n");
}