diff options
author | dec05eba <dec05eba@protonmail.com> | 2023-12-08 18:04:07 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2023-12-08 18:04:07 +0100 |
commit | b3c534bdeb82f31d1a30d609b2fe42c128d9b560 (patch) | |
tree | 5fd2b200b377ac9497caa3aff0d86552a0c0515d /include | |
parent | b756fb4fa5ed540ea37139d45def2f3f1151b19e (diff) |
Add class hint, wm name, window type
Diffstat (limited to 'include')
-rw-r--r-- | include/mgl/window/window.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/mgl/window/window.h b/include/mgl/window/window.h index cbcdb1a..12a7aef 100644 --- a/include/mgl/window/window.h +++ b/include/mgl/window/window.h @@ -60,6 +60,11 @@ struct mgl_window { int num_monitors; }; +typedef enum { + MGL_WINDOW_TYPE_NORMAL, + MGL_WINDOW_TYPE_DIALOG +} mgl_window_type; + /* TODO: Some of these parameters only apply to new window */ typedef struct { mgl_vec2i position; @@ -71,6 +76,8 @@ typedef struct { bool override_redirect; /* false by default */ bool support_alpha; /* support alpha for the window, false by default */ mgl_color background_color; /* default: black */ + const char *class_name; + mgl_window_type window_type; /* default: normal */ } mgl_window_create_params; typedef enum { |