aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2022-03-31 17:21:01 +0200
committerdec05eba <dec05eba@protonmail.com>2022-03-31 17:21:01 +0200
commitd89e3d1a1cf432210361d1b0aafad8308d8ac961 (patch)
tree9f9155ede708c705cb72d8e061ca4692d5f562d9 /include
parent956c86fe4728e6e5239202f1402fd65260ece7c8 (diff)
Add override redirect option to window create
Diffstat (limited to 'include')
-rw-r--r--include/mgl/window/window.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/mgl/window/window.h b/include/mgl/window/window.h
index 27e4409..f42d592 100644
--- a/include/mgl/window/window.h
+++ b/include/mgl/window/window.h
@@ -47,12 +47,14 @@ struct mgl_window {
typedef struct {
mgl_vec2i position;
mgl_vec2i size;
- mgl_vec2i min_size; /* (0, 0) = no limit */
- mgl_vec2i max_size; /* (0, 0) = no limit */
+ mgl_vec2i min_size; /* (0, 0) = no limit */
+ mgl_vec2i max_size; /* (0, 0) = no limit */
mgl_window_handle parent_window; /* 0 = root window */
- bool hidden;
+ bool hidden; /* false by default */
+ bool override_redirect; /* false by default */
} mgl_window_create_params;
+/* |params| can be NULL */
int mgl_window_create(mgl_window *self, const char *title, const mgl_window_create_params *params);
int mgl_window_init_from_existing_window(mgl_window *self, mgl_window_handle existing_window);
void mgl_window_deinit(mgl_window *self);