mirror of
https://github.com/glfw/glfw.git
synced 2024-11-22 04:54:35 +00:00
Formatting.
This commit is contained in:
parent
134d7d0708
commit
93871abf04
@ -134,12 +134,10 @@ static GLboolean checkForEWMH(_GLFWwindow* window)
|
||||
// Hey kids; let's see if the window manager supports EWMH!
|
||||
|
||||
// First we need a couple of atoms, which should already be there
|
||||
Atom supportingWmCheck = XInternAtom(_glfwLibrary.X11.display,
|
||||
"_NET_SUPPORTING_WM_CHECK",
|
||||
True);
|
||||
Atom wmSupported = XInternAtom(_glfwLibrary.X11.display,
|
||||
"_NET_SUPPORTED",
|
||||
True);
|
||||
Atom supportingWmCheck =
|
||||
XInternAtom(_glfwLibrary.X11.display, "_NET_SUPPORTING_WM_CHECK", True);
|
||||
Atom wmSupported =
|
||||
XInternAtom(_glfwLibrary.X11.display, "_NET_SUPPORTED", True);
|
||||
if (supportingWmCheck == None || wmSupported == None)
|
||||
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
|
||||
|
||||
window->X11.wmState = getSupportedAtom(supportedAtoms,
|
||||
atomCount,
|
||||
"_NET_WM_STATE");
|
||||
window->X11.wmState =
|
||||
getSupportedAtom(supportedAtoms, atomCount, "_NET_WM_STATE");
|
||||
|
||||
window->X11.wmStateFullscreen = getSupportedAtom(supportedAtoms,
|
||||
atomCount,
|
||||
"_NET_WM_STATE_FULLSCREEN");
|
||||
window->X11.wmStateFullscreen =
|
||||
getSupportedAtom(supportedAtoms, atomCount, "_NET_WM_STATE_FULLSCREEN");
|
||||
|
||||
window->X11.wmPing = getSupportedAtom(supportedAtoms,
|
||||
atomCount,
|
||||
"_NET_WM_PING");
|
||||
window->X11.wmPing =
|
||||
getSupportedAtom(supportedAtoms, atomCount, "_NET_WM_PING");
|
||||
|
||||
window->X11.wmActiveWindow = getSupportedAtom(supportedAtoms,
|
||||
atomCount,
|
||||
"_NET_ACTIVE_WINDOW");
|
||||
window->X11.wmActiveWindow =
|
||||
getSupportedAtom(supportedAtoms, atomCount, "_NET_ACTIVE_WINDOW");
|
||||
|
||||
XFree(supportedAtoms);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user