comparison src/video/photon/SDL_ph_wm.c @ 190:e4af2c852c09

*** empty log message ***
author Sam Lantinga <slouken@libsdl.org>
date Sun, 23 Sep 2001 18:19:44 +0000
parents 8cc4dbfab9ab
children e8157fcb3114
comparison
equal deleted inserted replaced
189:175917167aac 190:e4af2c852c09
231 } 231 }
232 232
233 /* Iconify the window (stolen from PhHotKey sources by phearbear ;-) */ 233 /* Iconify the window (stolen from PhHotKey sources by phearbear ;-) */
234 int ph_IconifyWindow(_THIS) 234 int ph_IconifyWindow(_THIS)
235 { 235 {
236 #if 1 /* Code submitted by Luca <barbato_luca@yahoo.com> */
237 WmApiContext_t context=WmCreateContext();
238 WmWindowDefinition_t
239 **wininfo=malloc(sizeof(WmWindowDefinition_t)*2);
240 int num;
241 SDL_Lock_EventThread();
242 WmGetFocusList(context,2,&num,wininfo);
243 WmPerformFrameAction(context, wininfo[0]->rid,Pt_ACTION_MIN);
244
245 WmDestroyContext (context);
246 SDL_Unlock_EventThread();
247 free(wininfo);
248 return (0);
249 #else
236 int result=0; 250 int result=0;
237 int myerr; 251 int myerr;
238 int num; 252 int num;
239 PtConnectionClient_t *Client=0; 253 PtConnectionClient_t *Client=0;
240 WmMsg_t* Message=malloc(sizeof(WmMsg_t)); 254 WmMsg_t* Message=malloc(sizeof(WmMsg_t));
266 free(Reply); 280 free(Reply);
267 281
268 SDL_Unlock_EventThread(); 282 SDL_Unlock_EventThread();
269 283
270 return(result); 284 return(result);
285 #endif /* 1 */
271 } 286 }
272 287
273 SDL_GrabMode ph_GrabInputNoLock(_THIS, SDL_GrabMode mode) 288 SDL_GrabMode ph_GrabInputNoLock(_THIS, SDL_GrabMode mode)
274 { 289 {
275 #if 0 /*big*/ 290 #if 0 /*big*/