From b52ed4028309fd20e3955c5f1a6adce9aa12c87b Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 1 Sep 2024 23:26:59 +0200 Subject: Comments --- include/mgl/window/window.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/include/mgl/window/window.h b/include/mgl/window/window.h index d922238..3a1faac 100644 --- a/include/mgl/window/window.h +++ b/include/mgl/window/window.h @@ -153,10 +153,17 @@ bool mgl_window_is_fullscreen(const mgl_window *self); void mgl_window_set_low_latency(mgl_window *self, bool low_latency); bool mgl_window_is_low_latency_enabled(const mgl_window *self); +/* This also flushes the X11 data so the position is changed as soon as possible */ void mgl_window_set_position(mgl_window *self, mgl_vec2i position); -/* Note that window size in mgl_window doesn't update immediately as the change size request can be ignored by the window manager. A MGL_EVENT_RESIZED event will be received if the resize occurred */ +/* + Note that window size in mgl_window doesn't update immediately as the change size request can be ignored by the window manager. A MGL_EVENT_RESIZED event will be received if the resize occurred. + This also flushes the X11 data so the size is changed as soon as possible. +*/ void mgl_window_set_size(mgl_window *self, mgl_vec2i size); -/* if |minimum| is (0, 0) then there is no minimum limit, if |maximum| is (0, 0) then there is no maximum limit */ +/* + If |minimum| is (0, 0) then there is no minimum limit, if |maximum| is (0, 0) then there is no maximum limit. + This also flushes the X11 data so the size is changed as soon as possible. +*/ void mgl_window_set_size_limits(mgl_window *self, mgl_vec2i minimum, mgl_vec2i maximum); void mgl_window_set_clipboard(mgl_window *self, const char *str, size_t size); -- cgit v1.2.3