$OpenBSD: patch-pypanel,v 1.1 2008/01/15 14:07:39 ajacoutot Exp $
--- pypanel.orig	Tue Jan 15 14:53:21 2008
+++ pypanel	Tue Jan 15 14:55:11 2008
@@ -95,6 +95,7 @@ class PyPanel(object):
         self.root.change_attributes(event_mask=(X.PropertyChangeMask)) 
         self.window.map()
         self.display.flush()
+        self.updatePanel(self.root, self.window, self.panel)
         self.loop(self.display, self.root, self.window, self.panel)
                 
     #------------------------------------
@@ -944,6 +945,9 @@ if __name__ == "__main__":
     main   = 2.4
     config = globals().get("VERSION", None)
     
+    # Get the startup delay
+    delay  = globals().get("STARTUP_DELAY", None)
+
     # Set locale to user's default
     locale.setlocale(locale.LC_ALL, "")
     
@@ -953,5 +957,9 @@ if __name__ == "__main__":
         sys.stderr.write("\nA current pypanelrc example can be found here -\n")
         sys.stderr.write("%s/pypanel/pypanelrc\n\n" % sysconfig.get_python_lib())
     del main, config
+
+    # If delay is set, pause, and let windowmanager load
+    if delay:
+        time.sleep(delay)
 
     PyPanel(display.Display())
