*** empty log message ***
authorSam Lantinga <slouken@libsdl.org>
Sun, 23 Sep 2001 18:19:44 +0000
changeset 190e4af2c852c09
parent 189 175917167aac
child 191 c151cfc43c07
*** empty log message ***
src/video/photon/Makefile.am
src/video/photon/SDL_ph_wm.c
     1.1 --- a/src/video/photon/Makefile.am	Sun Sep 23 18:10:59 2001 +0000
     1.2 +++ b/src/video/photon/Makefile.am	Sun Sep 23 18:19:44 2001 +0000
     1.3 @@ -17,5 +17,6 @@
     1.4  	SDL_ph_video.c		\
     1.5  	SDL_ph_video.h		\
     1.6  	SDL_ph_wm.c		\
     1.7 +	SDL_ph_wm_c.h		\
     1.8  	SDL_phyuv.c		\
     1.9  	SDL_phyuv_c.h
     2.1 --- a/src/video/photon/SDL_ph_wm.c	Sun Sep 23 18:10:59 2001 +0000
     2.2 +++ b/src/video/photon/SDL_ph_wm.c	Sun Sep 23 18:19:44 2001 +0000
     2.3 @@ -233,6 +233,20 @@
     2.4  /* Iconify the window (stolen from PhHotKey sources by phearbear ;-) */
     2.5  int ph_IconifyWindow(_THIS)
     2.6  {
     2.7 +#if 1 /* Code submitted by Luca <barbato_luca@yahoo.com> */
     2.8 +	WmApiContext_t context=WmCreateContext();
     2.9 +	WmWindowDefinition_t
    2.10 +**wininfo=malloc(sizeof(WmWindowDefinition_t)*2);
    2.11 +	int num;									
    2.12 +	SDL_Lock_EventThread();
    2.13 +	WmGetFocusList(context,2,&num,wininfo);
    2.14 +	WmPerformFrameAction(context, wininfo[0]->rid,Pt_ACTION_MIN);
    2.15 +
    2.16 +	WmDestroyContext (context);   
    2.17 +	SDL_Unlock_EventThread();	 
    2.18 +	free(wininfo);		   
    2.19 +	return (0);   
    2.20 +#else
    2.21  	int result=0;
    2.22          int myerr;
    2.23          int num;
    2.24 @@ -268,6 +282,7 @@
    2.25  	SDL_Unlock_EventThread();
    2.26  
    2.27  	return(result);
    2.28 +#endif /* 1 */
    2.29  }
    2.30  
    2.31  SDL_GrabMode ph_GrabInputNoLock(_THIS, SDL_GrabMode mode)