src/video/gem/SDL_gemevents.c
changeset 736 028e03e273c8
parent 319 189a6a3416c7
child 769 b8d311d90021
     1.1 --- a/src/video/gem/SDL_gemevents.c	Wed Nov 12 18:46:48 2003 +0000
     1.2 +++ b/src/video/gem/SDL_gemevents.c	Wed Nov 12 18:49:29 2003 +0000
     1.3 @@ -219,6 +219,11 @@
     1.4  				/* Send an internal deactivate event */
     1.5  				SDL_PrivateAppActive(0, SDL_APPACTIVE|SDL_APPINPUTFOCUS);
     1.6  			}
     1.7 +			/* Update window title */
     1.8 +			if (GEM_refresh_name && GEM_icon_name) {
     1.9 +				wind_set(GEM_handle,WF_NAME,(short)(((unsigned long)GEM_icon_name)>>16),(short)(((unsigned long)GEM_icon_name) & 0xffff),0,0);
    1.10 +				GEM_refresh_name = SDL_FALSE;
    1.11 +			}
    1.12  			break;
    1.13  		case WM_UNICONIFY:
    1.14  			wind_set(message[3],WF_UNICONIFY,message[4],message[5],message[6],message[7]);
    1.15 @@ -227,6 +232,10 @@
    1.16  				/* Send an internal activate event */
    1.17  				SDL_PrivateAppActive(1, SDL_APPACTIVE);
    1.18  			}
    1.19 +			if (GEM_refresh_name && GEM_title_name) {
    1.20 +				wind_set(GEM_handle,WF_NAME,(short)(((unsigned long)GEM_title_name)>>16),(short)(((unsigned long)GEM_title_name) & 0xffff),0,0);
    1.21 +				GEM_refresh_name = SDL_FALSE;
    1.22 +			}
    1.23  			break;
    1.24  		case WM_SIZED:
    1.25  			wind_set (message[3], WF_CURRXYWH, message[4], message[5], message[6], message[7]);