# HG changeset patch # User Patrice Mandin # Date 1101819862 0 # Node ID 54bb194550811279b1cb134889b044201cced357 # Parent 22fc5f45bbb71913c5579ae402b87548d08ebace Forgot to change window title in the normal case diff -r 22fc5f45bbb7 -r 54bb19455081 src/video/gem/SDL_gemevents.c --- a/src/video/gem/SDL_gemevents.c Sun Nov 28 21:52:29 2004 +0000 +++ b/src/video/gem/SDL_gemevents.c Tue Nov 30 13:04:22 2004 +0000 @@ -188,6 +188,22 @@ } memcpy(gem_previouskeyboard,gem_currentkeyboard,sizeof(gem_previouskeyboard)); + + /* Refresh window name ? */ + if (GEM_refresh_name) { + if ( SDL_GetAppState() & SDL_APPACTIVE ) { + /* Fullscreen/windowed */ + if (GEM_title_name) { + wind_set(GEM_handle,WF_NAME,(short)(((unsigned long)GEM_title_name)>>16),(short)(((unsigned long)GEM_title_name) & 0xffff),0,0); + } + } else { + /* Iconified */ + if (GEM_icon_name) { + wind_set(GEM_handle,WF_NAME,(short)(((unsigned long)GEM_icon_name)>>16),(short)(((unsigned long)GEM_icon_name) & 0xffff),0,0); + } + } + GEM_refresh_name = SDL_FALSE; + } } static int do_messages(_THIS, short *message)