about summary refs log tree commit diff
path: root/src/engine/external/glfw/lib/x11/x11_window.c
diff options
context:
space:
mode:
authorDominik Geyer <dominik.geyer@gmx.de>2008-10-16 17:09:34 +0000
committerDominik Geyer <dominik.geyer@gmx.de>2008-10-16 17:09:34 +0000
commit977785b154f4153cc99e5c0ca866c154bb71bfbc (patch)
tree4fb2db379164c0b8cf1cf70c2a3d2ebc41e8704d /src/engine/external/glfw/lib/x11/x11_window.c
parent07fc7ec8f899abdf8f24f9e17d019ee6b3a33a68 (diff)
downloadzcatch-977785b154f4153cc99e5c0ca866c154bb71bfbc.tar.gz
zcatch-977785b154f4153cc99e5c0ca866c154bb71bfbc.zip
updated to glfw-1.6 and merged previous modifications
Diffstat (limited to 'src/engine/external/glfw/lib/x11/x11_window.c')
-rw-r--r--src/engine/external/glfw/lib/x11/x11_window.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/engine/external/glfw/lib/x11/x11_window.c b/src/engine/external/glfw/lib/x11/x11_window.c
index ed4c42f5..4ed2007b 100644
--- a/src/engine/external/glfw/lib/x11/x11_window.c
+++ b/src/engine/external/glfw/lib/x11/x11_window.c
@@ -978,9 +978,6 @@ 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",

@@ -1075,6 +1072,10 @@ int _glfwPlatformOpenWindow( int width, int height, int redbits,
                       _glfwWin.Width/2, _glfwWin.Height/2 );

     }

 

+    // Set window & icon name

+    // teeworlds: set our own title early, workaround for some window-managers

+    _glfwPlatformSetWindowTitle( "Teeworlds" );

+

     // Connect the context to the window

     glXMakeCurrent( _glfwLibrary.Dpy, _glfwWin.Win, _glfwWin.CX );

 

@@ -1521,6 +1522,8 @@ void _glfwPlatformPollEvents( void )
     // or without XSync, but when the GL window is rendered over a slow

     // network I have noticed bad event syncronisation problems when XSync

     // is not used, so I decided to use it.

+    //

+    // teeworlds: don't synchronise

     //XSync( _glfwLibrary.Dpy, False );

 

     // Empty the window event queue