From a05a9623d08a7e6544b06b2c9314cc1083f242cc Mon Sep 17 00:00:00 2001 From: Ted Percival Date: Sun, 27 Mar 2005 11:48:46 +0000 Subject: [PATCH] set window title --- stepmania/src/arch/LowLevelWindow/LowLevelWindow_X11.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/stepmania/src/arch/LowLevelWindow/LowLevelWindow_X11.cpp b/stepmania/src/arch/LowLevelWindow/LowLevelWindow_X11.cpp index 434d2fa0ca..ee48bbc333 100644 --- a/stepmania/src/arch/LowLevelWindow/LowLevelWindow_X11.cpp +++ b/stepmania/src/arch/LowLevelWindow/LowLevelWindow_X11.cpp @@ -8,6 +8,7 @@ #include // ceil() #define GLX_GLXEXT_PROTOTYPES #include // All sorts of stuff... +#include // XXX HACK: RageDisplay_OGL is expecting us to set this for it so it can do // GLX-specific queries and whatnot. It's one ugly hackish mess, but hey, @@ -96,6 +97,10 @@ CString LowLevelWindow_X11::TryVideoMode(RageDisplay::VideoModeParams p, bool &b } windowIsOpen = true; + char WindowTitle[] = "StepMania"; + XChangeProperty(g_X11Display, X11Helper::Win, XA_WM_NAME, XA_STRING, 8, PropModeReplace, + reinterpret_cast(WindowTitle), strlen(WindowTitle)); + ctxt = glXCreateContext(X11Helper::Dpy, xvi, NULL, True); glXMakeCurrent(X11Helper::Dpy, X11Helper::Win, ctxt);