aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2022-10-11 21:23:54 +0200
committerdec05eba <dec05eba@protonmail.com>2022-10-11 21:23:54 +0200
commit1d3eb88461165fcc7ab1d5efde022e6714050806 (patch)
tree7022ecf4ba639c0ab0fdc108fdb04de4222ef0d9 /include
parentac595a9b81c5bdf813882e9b7b14e12e3c81ab70 (diff)
Add option to support alpha for window or not. This is important for nvidia flip
Diffstat (limited to 'include')
-rw-r--r--include/mgl/mgl.h3
-rw-r--r--include/mgl/window/window.h1
2 files changed, 1 insertions, 3 deletions
diff --git a/include/mgl/mgl.h b/include/mgl/mgl.h
index b43e4b9..f2373b7 100644
--- a/include/mgl/mgl.h
+++ b/include/mgl/mgl.h
@@ -10,9 +10,6 @@ typedef struct mgl_context mgl_context;
struct mgl_context {
mgl_connection connection;
mgl_gl gl;
- GLXFBConfig *fbconfigs;
- _XVisualInfo *visual_info;
- GLXFBConfig fbconfig;
unsigned long wm_delete_window_atom;
unsigned long net_wm_ping_atom;
unsigned long net_wm_pid_atom;
diff --git a/include/mgl/window/window.h b/include/mgl/window/window.h
index 7dd85b4..34f8cbb 100644
--- a/include/mgl/window/window.h
+++ b/include/mgl/window/window.h
@@ -52,6 +52,7 @@ typedef struct {
mgl_window_handle parent_window; /* 0 = root window */
bool hidden; /* false by default */
bool override_redirect; /* false by default */
+ bool support_alpha; /* support alpha for the window, false by default */
} mgl_window_create_params;
typedef enum {