From 154b01e8cf2cafa2cced76b599af31d6636f8886 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Sat, 24 Oct 2015 22:47:27 +0200 Subject: [PATCH] Cleanup --- src/x11_window.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/x11_window.c b/src/x11_window.c index 147ef7b6..c08b01ba 100644 --- a/src/x11_window.c +++ b/src/x11_window.c @@ -250,8 +250,6 @@ static char** parseUriList(char* text, int* count) static GLFWbool createWindow(_GLFWwindow* window, const _GLFWwndconfig* wndconfig) { - unsigned long wamask; - XSetWindowAttributes wa; XVisualInfo* vi = _GLFW_X11_CONTEXT_VISUAL; // Every window needs a colormap @@ -265,7 +263,8 @@ static GLFWbool createWindow(_GLFWwindow* window, // Create the actual window { - wamask = CWBorderPixel | CWColormap | CWEventMask; + XSetWindowAttributes wa; + const unsigned long wamask = CWBorderPixel | CWColormap | CWEventMask; wa.colormap = window->x11.colormap; wa.border_pixel = 0;