From 5490e519cfb52d1cbb63752cee277ae01cd9e3fb Mon Sep 17 00:00:00 2001 From: dec05eba Date: Mon, 11 Dec 2023 01:00:32 +0100 Subject: add window flush function --- src/window/window.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/window') diff --git a/src/window/window.c b/src/window/window.c index b0d1235..05d643d 100644 --- a/src/window/window.c +++ b/src/window/window.c @@ -1736,3 +1736,8 @@ bool mgl_window_get_clipboard_string(mgl_window *self, char **str, size_t *size) void mgl_window_set_key_repeat_enabled(mgl_window *self, bool enabled) { self->key_repeat_enabled = enabled; } + +void mgl_window_flush(mgl_window *self) { + mgl_context *context = mgl_get_context(); + XFlush(context->connection); +} -- cgit v1.2.3