comparison src/frame-msw.c @ 4139:e93da3cda3cb

[xemacs-hg @ 2007-08-23 12:31:32 by vins] Patch frame-msw.c to support cygwin's run command.
author vins
date Thu, 23 Aug 2007 12:31:34 +0000
parents 229bd619740a
children 6ef8256a020a 304aebb79cd3 e0db3c197671
comparison
equal deleted inserted replaced
4138:4dd678fb2fb6 4139:e93da3cda3cb
302 302
303 /* Called after frame's properties are set */ 303 /* Called after frame's properties are set */
304 static void 304 static void
305 mswindows_init_frame_3 (struct frame *f) 305 mswindows_init_frame_3 (struct frame *f)
306 { 306 {
307 /* Don't do this earlier or we get a WM_PAINT before the frame is ready */ 307 /* Don't do this earlier or we get a WM_PAINT before the frame is ready. */
308 ShowWindow (FRAME_MSWINDOWS_HANDLE (f), SW_SHOWNORMAL); 308 ShowWindow (FRAME_MSWINDOWS_HANDLE(f), SW_SHOWNORMAL);
309 SetForegroundWindow (FRAME_MSWINDOWS_HANDLE (f)); 309 #ifdef CYGWIN
310 DragAcceptFiles (FRAME_MSWINDOWS_HANDLE (f), TRUE); 310 /* The SW_x parameter in the first call that an app makes to ShowWindow is
311 * ignored, and the parameter specified in the caller's STARTUPINFO is
312 * substituted instead. That parameter is SW_HIDE if we were started by
313 * runemacs, so call this twice. #### runemacs is evil. To see why this
314 * second call was restored, see the threads referenced by
315 * 20a807210611011157j57ea2b22ue892f4dfcb6aade8@mail.gmail.com and
316 * 20a807210708181345m7ac94ff2m43337be71e853d95@mail.gmail.com . */
317 ShowWindow (FRAME_MSWINDOWS_HANDLE(f), SW_SHOWNORMAL);
318 #endif
319 SetForegroundWindow (FRAME_MSWINDOWS_HANDLE(f));
320 DragAcceptFiles (FRAME_MSWINDOWS_HANDLE(f), TRUE);
311 } 321 }
312 322
313 static void 323 static void
314 mswindows_after_init_frame (struct frame *UNUSED (f), 324 mswindows_after_init_frame (struct frame *UNUSED (f),
315 int UNUSED (first_on_device), int first_on_console) 325 int UNUSED (first_on_device), int first_on_console)