All pastes #35758 Raw Edit

Unnamed

public text v1 · immutable
#35758 ·published 2006-01-04 21:27 UTC
rendered paste body
Index: System.Windows.Forms/Application.cs
===================================================================
--- System.Windows.Forms/Application.cs (revision 55057)
+++ System.Windows.Forms/Application.cs (working copy)
@@ -300,6 +300,14 @@
                }
 
                public static void Run() {
+                       if (Environment.GetEnvironmentVariable ("MONO_MWF_USE_QUARTZ_BACKEND") != null) {
+                               System.Windows.Forms.OSX.Application.Run ();
+                       } else {
+                               RealRun ();
+                       }
+               }
+
+               internal static void RealRun() {
                        MSG     msg = new MSG();
                        Form    form = null;