From 1d3eb88461165fcc7ab1d5efde022e6714050806 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Tue, 11 Oct 2022 21:23:54 +0200 Subject: Add option to support alpha for window or not. This is important for nvidia flip --- include/mgl/mgl.h | 3 --- include/mgl/window/window.h | 1 + 2 files changed, 1 insertion(+), 3 deletions(-) (limited to 'include') 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 { -- cgit v1.2.3