1
0
Fork 0

Melchior FRANZ:

The caption should already be set when the window is opened. This is
important for some window managers. (KDE's kwin, for example, can store
special settings for certain windows, such as "no border" and "always
on top". KDE uses the window title to determine if a special rule is
to be applied. KDE will be made more tolerant, too.)
This commit is contained in:
ehofman 2004-11-08 17:41:30 +00:00
parent 85df309a3b
commit 5733464305

View file

@ -71,6 +71,8 @@ void fgOSOpenWindow(int w, int h, int bpp,
throw sg_throwable(string("Failed to initialize SDL: ") throw sg_throwable(string("Failed to initialize SDL: ")
+ SDL_GetError()); + SDL_GetError());
SDL_WM_SetCaption("FlightGear", "FlightGear");
SDL_GL_SetAttribute(SDL_GL_RED_SIZE, cbits); SDL_GL_SetAttribute(SDL_GL_RED_SIZE, cbits);
SDL_GL_SetAttribute(SDL_GL_GREEN_SIZE, cbits); SDL_GL_SetAttribute(SDL_GL_GREEN_SIZE, cbits);
SDL_GL_SetAttribute(SDL_GL_BLUE_SIZE, cbits); SDL_GL_SetAttribute(SDL_GL_BLUE_SIZE, cbits);
@ -89,8 +91,6 @@ void fgOSOpenWindow(int w, int h, int bpp,
throw sg_throwable(string("Failed to set SDL video mode: ") throw sg_throwable(string("Failed to set SDL video mode: ")
+ SDL_GetError()); + SDL_GetError());
SDL_WM_SetCaption("FlightGear", "FlightGear");
// This enables keycode translation (e.g. capital letters when // This enables keycode translation (e.g. capital letters when
// shift is pressed, as well as i18n input methods). Eventually, // shift is pressed, as well as i18n input methods). Eventually,
// we may want to port the input maps to specify <mod-shift> // we may want to port the input maps to specify <mod-shift>