1
0
Fork 0
mirror of https://github.com/gwm17/glfw.git synced 2024-10-08 15:17:25 -04:00

Moved WM_DELETE_WINDOW retrieval to init.

This commit is contained in:
Camilla Berglund 2013-01-21 17:57:32 +01:00
parent 2fca5c5df1
commit ca07a067a8
2 changed files with 5 additions and 5 deletions

View File

@ -484,6 +484,11 @@ static GLboolean initDisplay(void)
_glfw.x11.screen = DefaultScreen(_glfw.x11.display);
_glfw.x11.root = RootWindow(_glfw.x11.display, _glfw.x11.screen);
// Find or create the protocol atom for window close notifications
_glfw.x11.wmDeleteWindow = XInternAtom(_glfw.x11.display,
"WM_DELETE_WINDOW",
False);
// Check for XF86VidMode extension
_glfw.x11.vidmode.available =
XF86VidModeQueryExtension(_glfw.x11.display,

View File

@ -164,11 +164,6 @@ static GLboolean createWindow(_GLFWwindow* window,
window->x11.overrideRedirect = GL_TRUE;
}
// Find or create the protocol atom for window close notifications
_glfw.x11.wmDeleteWindow = XInternAtom(_glfw.x11.display,
"WM_DELETE_WINDOW",
False);
// Declare the WM protocols supported by GLFW
{
int count = 0;