From f3e5b69d33f47dece7e3bc8c133f65ad7169cc18 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Wed, 31 Jul 2024 19:58:20 +0200 Subject: Flush after window move/resize --- src/window/window.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/window/window.c b/src/window/window.c index 7c28d8a..586719d 100644 --- a/src/window/window.c +++ b/src/window/window.c @@ -1478,10 +1478,12 @@ bool mgl_window_is_low_latency_enabled(const mgl_window *self) { void mgl_window_set_position(mgl_window *self, mgl_vec2i position) { XMoveWindow(mgl_get_context()->connection, self->window, position.x, position.y); + XFlush(mgl_get_context()->connection); } void mgl_window_set_size(mgl_window *self, mgl_vec2i size) { XResizeWindow(mgl_get_context()->connection, self->window, size.x, size.y); + XFlush(mgl_get_context()->connection); } void mgl_window_set_size_limits(mgl_window *self, mgl_vec2i minimum, mgl_vec2i maximum) { -- cgit v1.2.3