From b3c534bdeb82f31d1a30d609b2fe42c128d9b560 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Fri, 8 Dec 2023 18:04:07 +0100 Subject: Add class hint, wm name, window type --- include/mgl/window/window.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include') 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 { -- cgit v1.2.3