diff options
author | dec05eba <dec05eba@protonmail.com> | 2024-09-01 23:26:59 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-09-01 23:26:59 +0200 |
commit | b52ed4028309fd20e3955c5f1a6adce9aa12c87b (patch) | |
tree | 1a7f53c5a99418e3b12701d990865441ca0ead84 | |
parent | 2ac81cce3e232e97eee94416ee92f41dd018b651 (diff) |
Comments
-rw-r--r-- | include/mgl/window/window.h | 11 |
1 files 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); |