moved setting of the window title

This commit is contained in:
Magnus Auvinen 2008-04-05 11:22:21 +00:00
parent c0f2ef7f91
commit 20280336dd

View file

@ -978,6 +978,9 @@ int _glfwPlatformOpenWindow( int width, int height, int redbits,
return GL_FALSE;
}
// Set window & icon name
_glfwPlatformSetWindowTitle( "Teeworlds" );
// Get the delete window WM protocol atom
_glfwWin.WMDeleteWindow = XInternAtom( _glfwLibrary.Dpy,
"WM_DELETE_WINDOW",
@ -1072,9 +1075,6 @@ int _glfwPlatformOpenWindow( int width, int height, int redbits,
_glfwWin.Width/2, _glfwWin.Height/2 );
}
// Set window & icon name
_glfwPlatformSetWindowTitle( "GLFW Window" );
// Connect the context to the window
glXMakeCurrent( _glfwLibrary.Dpy, _glfwWin.Win, _glfwWin.CX );