CVS update by vins xemacs/src ...
xemacs-cvs at xemacs.org
xemacs-cvs at xemacs.org
Thu Aug 23 08:31:39 EDT 2007
User: vins
Date: 07/08/23 14:31:39
Modified: xemacs/src ChangeLog frame-msw.c
Log:
Patch frame-msw.c to support cygwin's run command.
Revision Changes Path
1.1091 +7 -0 XEmacs/xemacs/src/ChangeLog
Index: ChangeLog
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/src/ChangeLog,v
retrieving revision 1.1090
retrieving revision 1.1091
diff -u -p -r1.1090 -r1.1091
--- ChangeLog 2007/08/22 15:10:10 1.1090
+++ ChangeLog 2007/08/23 12:31:32 1.1091
@@ -1,3 +1,10 @@
+2007-08-18 Vin Shelton <acs at xemacs.org>
+
+ * frame-msw.c (mswindows_init_frame_3): Restore extra call to
+ ShowWindow so that cygwin's run command can be used to open an
+ XEmacs session. Without this, no frame appears when the XEmacs
+ process starts up.
+
2006-10-26 Nix <nix at esperi.org.uk>
* dumper.c (pdump_load): Statically allocate a large enough
1.61 +14 -4 XEmacs/xemacs/src/frame-msw.c
Index: frame-msw.c
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/src/frame-msw.c,v
retrieving revision 1.60
retrieving revision 1.61
diff -u -p -r1.60 -r1.61
--- frame-msw.c 2007/08/15 11:06:09 1.60
+++ frame-msw.c 2007/08/23 12:31:34 1.61
@@ -304,10 +304,20 @@ mswindows_init_frame_2 (struct frame *f,
static void
mswindows_init_frame_3 (struct frame *f)
{
- /* Don't do this earlier or we get a WM_PAINT before the frame is ready */
- ShowWindow (FRAME_MSWINDOWS_HANDLE (f), SW_SHOWNORMAL);
- SetForegroundWindow (FRAME_MSWINDOWS_HANDLE (f));
- DragAcceptFiles (FRAME_MSWINDOWS_HANDLE (f), TRUE);
+ /* Don't do this earlier or we get a WM_PAINT before the frame is ready. */
+ ShowWindow (FRAME_MSWINDOWS_HANDLE(f), SW_SHOWNORMAL);
+#ifdef CYGWIN
+ /* The SW_x parameter in the first call that an app makes to ShowWindow is
+ * ignored, and the parameter specified in the caller's STARTUPINFO is
+ * substituted instead. That parameter is SW_HIDE if we were started by
+ * runemacs, so call this twice. #### runemacs is evil. To see why this
+ * second call was restored, see the threads referenced by
+ * 20a807210611011157j57ea2b22ue892f4dfcb6aade8 at mail.gmail.com and
+ * 20a807210708181345m7ac94ff2m43337be71e853d95 at mail.gmail.com . */
+ ShowWindow (FRAME_MSWINDOWS_HANDLE(f), SW_SHOWNORMAL);
+#endif
+ SetForegroundWindow (FRAME_MSWINDOWS_HANDLE(f));
+ DragAcceptFiles (FRAME_MSWINDOWS_HANDLE(f), TRUE);
}
static void
More information about the XEmacs-CVS
mailing list