# HG changeset patch # User Sam Lantinga # Date 1001269184 0 # Node ID e4af2c852c09dff1bf4b936fff85b74312315118 # Parent 175917167aac1931abc1a834cbb3ce4c63e6f01e *** empty log message *** diff -r 175917167aac -r e4af2c852c09 src/video/photon/Makefile.am --- a/src/video/photon/Makefile.am Sun Sep 23 18:10:59 2001 +0000 +++ b/src/video/photon/Makefile.am Sun Sep 23 18:19:44 2001 +0000 @@ -17,5 +17,6 @@ SDL_ph_video.c \ SDL_ph_video.h \ SDL_ph_wm.c \ + SDL_ph_wm_c.h \ SDL_phyuv.c \ SDL_phyuv_c.h diff -r 175917167aac -r e4af2c852c09 src/video/photon/SDL_ph_wm.c --- a/src/video/photon/SDL_ph_wm.c Sun Sep 23 18:10:59 2001 +0000 +++ b/src/video/photon/SDL_ph_wm.c Sun Sep 23 18:19:44 2001 +0000 @@ -233,6 +233,20 @@ /* Iconify the window (stolen from PhHotKey sources by phearbear ;-) */ int ph_IconifyWindow(_THIS) { +#if 1 /* Code submitted by Luca */ + WmApiContext_t context=WmCreateContext(); + WmWindowDefinition_t +**wininfo=malloc(sizeof(WmWindowDefinition_t)*2); + int num; + SDL_Lock_EventThread(); + WmGetFocusList(context,2,&num,wininfo); + WmPerformFrameAction(context, wininfo[0]->rid,Pt_ACTION_MIN); + + WmDestroyContext (context); + SDL_Unlock_EventThread(); + free(wininfo); + return (0); +#else int result=0; int myerr; int num; @@ -268,6 +282,7 @@ SDL_Unlock_EventThread(); return(result); +#endif /* 1 */ } SDL_GrabMode ph_GrabInputNoLock(_THIS, SDL_GrabMode mode)