src/video/gem/SDL_gemevents.c
branchSDL-1.2
changeset 11561 e990d334b75a
parent 11560 c267eabdc97f
child 11568 6fbdeeef1935
     1.1 --- a/src/video/gem/SDL_gemevents.c	Sat Sep 30 23:29:53 2017 +0200
     1.2 +++ b/src/video/gem/SDL_gemevents.c	Sat Sep 30 23:40:38 2017 +0200
     1.3 @@ -187,9 +187,9 @@
     1.4  
     1.5  static int do_messages(_THIS, short *message, short latest_msg_id)
     1.6  {
     1.7 -	int quit, update_work_area, align_work_area, sdl_resize;
     1.8 +	int quit, update_work_area, iconified, sdl_resize;
     1.9  
    1.10 -	quit = update_work_area = align_work_area = sdl_resize = 0;
    1.11 +	quit = update_work_area = iconified = sdl_resize = 0;
    1.12  	switch (message[0]) {
    1.13  		case MSG_SDL_ID:
    1.14  			quit=(message[1] == latest_msg_id);
    1.15 @@ -201,7 +201,7 @@
    1.16  			break;
    1.17  		case WM_MOVED:
    1.18  			wind_set(message[3],WF_CURRXYWH,message[4],message[5],message[6],message[7]);
    1.19 -			update_work_area = align_work_area = 1;
    1.20 +			update_work_area = 1;
    1.21  			break;
    1.22  		case WM_TOPPED:
    1.23  			wind_set(message[3],WF_TOP,message[4],0,0,0);
    1.24 @@ -233,7 +233,7 @@
    1.25  					0,0);
    1.26  				GEM_refresh_name = SDL_FALSE;
    1.27  			}
    1.28 -			update_work_area = 1;
    1.29 +			update_work_area = iconified = 1;
    1.30  			break;
    1.31  		case WM_UNICONIFY:
    1.32  			wind_set (message[3],WF_UNICONIFY,message[4],message[5],message[6],message[7]);
    1.33 @@ -249,11 +249,11 @@
    1.34  					0,0);
    1.35  				GEM_refresh_name = SDL_FALSE;
    1.36  			}
    1.37 -			update_work_area = align_work_area = 1;
    1.38 +			update_work_area = 1;
    1.39  			break;
    1.40  		case WM_SIZED:
    1.41  			wind_set (message[3], WF_CURRXYWH, message[4], message[5], message[6], message[7]);
    1.42 -			update_work_area = align_work_area = sdl_resize = 1;
    1.43 +			update_work_area = sdl_resize = 1;
    1.44  			GEM_win_fulled = SDL_FALSE;		/* Cancel maximized flag */
    1.45  			GEM_lock_redraw = SDL_TRUE;		/* Prevent redraw till buffers resized */
    1.46  			break;
    1.47 @@ -272,7 +272,7 @@
    1.48  					GEM_win_fulled = SDL_TRUE;
    1.49  				}
    1.50  				wind_set (message[3], WF_CURRXYWH, x, y, w, h);
    1.51 -				update_work_area = align_work_area = sdl_resize = 1;
    1.52 +				update_work_area = sdl_resize = 1;
    1.53  				GEM_lock_redraw = SDL_TRUE;		/* Prevent redraw till buffers resized */
    1.54  			}
    1.55  			break;
    1.56 @@ -288,7 +288,7 @@
    1.57  	}
    1.58  
    1.59  	if (update_work_area) {
    1.60 -		GEM_align_work_area(this, message[3], 1);
    1.61 +		GEM_align_work_area(this, message[3], 1, iconified);
    1.62  
    1.63  		if (sdl_resize) {
    1.64  			SDL_PrivateResize(GEM_work_w, GEM_work_h);