This is the mail archive of the
cygwin-xfree
mailing list for the Cygwin XFree86 project.
Make XWinrc work on Xming
- From: "Colin Harrison" <colin dot harrison at virgin dot net>
- To: <cygwin-xfree at cygwin dot com>
- Date: Wed, 27 Jul 2005 10:12:47 +0100
- Subject: Make XWinrc work on Xming
- Reply-to: cygwin-xfree at cygwin dot com
Hi,
I have a crude patch to make XWinrc work on Xming (for use when
crosscompiled using MinGW):-
--- programs/Xserver/hw/xwin/save_winprefs.c 2005-07-26
22:22:03.000000000 +0100
+++ programs/Xserver/hw/xwin/winprefs.c 2005-07-27 09:58:51.000000000 +0100
@@ -380,7 +380,16 @@
else
return TRUE;
break;
-#endif
+#else
+ case CMD_EXEC:
+ {
+ char buffer[MAX_PATH];
+ snprintf(buffer, sizeof(buffer), "cmd /c \"%s\"",
m->menuItem[j].param);
+ buffer[sizeof(buffer)-1] = 0;
+ system(buffer);
+ }
+ return TRUE;
+#endif
case CMD_ALWAYSONTOP:
if (!hwnd)
return FALSE;
Colin Harrison
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ: http://x.cygwin.com/docs/faq/