(X11) Cleanups

This commit is contained in:
twinaphex 2016-12-15 12:37:14 +01:00
parent 7c6930b220
commit a5d4032d01
2 changed files with 5 additions and 3 deletions

View File

@ -46,6 +46,8 @@ static bool g_x11_has_focus = false;
static bool g_x11_true_full = false; static bool g_x11_true_full = false;
Display *g_x11_dpy = NULL; Display *g_x11_dpy = NULL;
unsigned g_x11_screen = 0;
Colormap g_x11_cmap; Colormap g_x11_cmap;
Window g_x11_win; Window g_x11_win;
@ -57,8 +59,6 @@ static Atom g_x11_quit_atom;
static XIM g_x11_xim; static XIM g_x11_xim;
static XIC g_x11_xic; static XIC g_x11_xic;
unsigned g_x11_screen;
#define XA_INIT(x) XA##x = XInternAtom(dpy, #x, False) #define XA_INIT(x) XA##x = XInternAtom(dpy, #x, False)
#define _NET_WM_STATE_ADD 1 #define _NET_WM_STATE_ADD 1
#define MOVERESIZE_GRAVITY_CENTER 5 #define MOVERESIZE_GRAVITY_CENTER 5

View File

@ -332,7 +332,9 @@ static bool gfx_ctx_x_set_resize(void *data,
static void *gfx_ctx_x_init(void *data) static void *gfx_ctx_x_init(void *data)
{ {
int nelements, major, minor; int nelements = 0;
int major = 0;
int minor = 0;
#ifdef HAVE_OPENGL #ifdef HAVE_OPENGL
static const int visual_attribs[] = { static const int visual_attribs[] = {
GLX_X_RENDERABLE , True, GLX_X_RENDERABLE , True,