Index: drivers/wxwidgets.cpp
===================================================================
--- drivers/wxwidgets.cpp	(revision 12278)
+++ drivers/wxwidgets.cpp	(working copy)
@@ -178,6 +178,8 @@
     ndev = NDEV;
 
     lineSpacing = 1.0;
+
+	initApp=false;
 }
 
 
@@ -1280,9 +1304,8 @@
     // Log_Verbose( "install_buffer" );
 
     wxPLDevBase * dev   = (wxPLDevBase *) pls->dev;
-    static bool initApp = false;
 
-    if ( !initApp )
+    if ( !dev->initApp )
     {
         // this hack enables to have a GUI on Mac OSX even if the
         // program was called from the command line (and isn't a bundle)
@@ -1301,7 +1324,7 @@
             wxPLGetApp().CallOnInit();
         }
         wxCATCH_ALL( wxPLGetApp().OnUnhandledException(); plexit( "Can't init wxWidgets!" ); )
-        initApp = true;
+        dev->initApp = true;
     }
 
 
Index: drivers/wxwidgets.h
===================================================================
--- drivers/wxwidgets.h	(revision 12278)
+++ drivers/wxwidgets.h	(working copy)
@@ -174,6 +174,8 @@
     PLFLT            rotation, cos_rot, sin_rot;
     PLFLT            shear, cos_shear, sin_shear;
     PLFLT            stride;
+
+	bool initApp;
 };
 
 
