atari:gem: Grab window work area also on iconification/deiconification SDL-1.2
authorPatrice Mandin <patmandin@gmail.com>
Sat, 30 Sep 2017 18:12:41 +0200
branchSDL-1.2
changeset 1155687e99e7708ce
parent 11555 a3426706e128
child 11557 9f94ac59f51c
atari:gem: Grab window work area also on iconification/deiconification
src/video/gem/SDL_gemevents.c
     1.1 --- a/src/video/gem/SDL_gemevents.c	Sat Sep 30 18:07:02 2017 +0200
     1.2 +++ b/src/video/gem/SDL_gemevents.c	Sat Sep 30 18:12:41 2017 +0200
     1.3 @@ -233,6 +233,7 @@
     1.4  					0,0);
     1.5  				GEM_refresh_name = SDL_FALSE;
     1.6  			}
     1.7 +			wind_get (message[3], WF_WORKXYWH, &GEM_work_x, &GEM_work_y, &GEM_work_w, &GEM_work_h);
     1.8  			break;
     1.9  		case WM_UNICONIFY:
    1.10  			wind_set (message[3],WF_UNICONIFY,message[4],message[5],message[6],message[7]);
    1.11 @@ -248,6 +249,7 @@
    1.12  					0,0);
    1.13  				GEM_refresh_name = SDL_FALSE;
    1.14  			}
    1.15 +			wind_get (message[3], WF_WORKXYWH, &GEM_work_x, &GEM_work_y, &GEM_work_w, &GEM_work_h);
    1.16  			break;
    1.17  		case WM_SIZED:
    1.18  			wind_set (message[3], WF_CURRXYWH, message[4], message[5], message[6], message[7]);