Formatting.

This commit is contained in:
Camilla Berglund 2010-09-11 02:13:49 +02:00
parent 134d7d0708
commit 93871abf04
1 changed files with 12 additions and 18 deletions

View File

@ -134,12 +134,10 @@ static GLboolean checkForEWMH(_GLFWwindow* window)
// Hey kids; let's see if the window manager supports EWMH! // Hey kids; let's see if the window manager supports EWMH!
// First we need a couple of atoms, which should already be there // First we need a couple of atoms, which should already be there
Atom supportingWmCheck = XInternAtom(_glfwLibrary.X11.display, Atom supportingWmCheck =
"_NET_SUPPORTING_WM_CHECK", XInternAtom(_glfwLibrary.X11.display, "_NET_SUPPORTING_WM_CHECK", True);
True); Atom wmSupported =
Atom wmSupported = XInternAtom(_glfwLibrary.X11.display, XInternAtom(_glfwLibrary.X11.display, "_NET_SUPPORTED", True);
"_NET_SUPPORTED",
True);
if (supportingWmCheck == None || wmSupported == None) if (supportingWmCheck == None || wmSupported == None)
return GL_FALSE; return GL_FALSE;
@ -189,21 +187,17 @@ static GLboolean checkForEWMH(_GLFWwindow* window)
// See which of the atoms we support that are supported by the WM // See which of the atoms we support that are supported by the WM
window->X11.wmState = getSupportedAtom(supportedAtoms, window->X11.wmState =
atomCount, getSupportedAtom(supportedAtoms, atomCount, "_NET_WM_STATE");
"_NET_WM_STATE");
window->X11.wmStateFullscreen = getSupportedAtom(supportedAtoms, window->X11.wmStateFullscreen =
atomCount, getSupportedAtom(supportedAtoms, atomCount, "_NET_WM_STATE_FULLSCREEN");
"_NET_WM_STATE_FULLSCREEN");
window->X11.wmPing = getSupportedAtom(supportedAtoms, window->X11.wmPing =
atomCount, getSupportedAtom(supportedAtoms, atomCount, "_NET_WM_PING");
"_NET_WM_PING");
window->X11.wmActiveWindow = getSupportedAtom(supportedAtoms, window->X11.wmActiveWindow =
atomCount, getSupportedAtom(supportedAtoms, atomCount, "_NET_ACTIVE_WINDOW");
"_NET_ACTIVE_WINDOW");
XFree(supportedAtoms); XFree(supportedAtoms);