repo: rxvt-unicode-sixel
action: commit
revision: 
path_from: 
revision_from: 4b49d11937e14697466bd825e3e604df270c8320:
path_to: 
revision_to: 
git.thebackupbox.net
rxvt-unicode-sixel
git clone git://git.thebackupbox.net/rxvt-unicode-sixel
commit 4b49d11937e14697466bd825e3e604df270c8320
Author: Marc Lehmann 
Date:   Thu Feb 12 01:53:25 2004 +0000

    *** empty log message ***

diff --git a/Changes b/Changes
index af05f30bfcfb9867c2d8e6d17c3b072103551d22..
index ..4e8ad5777d7613f5582d44fc5c5480a6cfab62d9 100644
--- a/Changes
+++ b/Changes
@@ -6,6 +6,8 @@
           startup time for new terms in rxvtd. At least xfree86 4.3 is
           rather broken with respect to input methods, though, so expect
           crashes when you kill your input method (xterm crashes, too).
+        - fix bugs in x flushing, causing an empty screen after startup
+          the first until the first event arives.

 1.8  Mon Feb  2 20:09:18 CET 2004
 	- almost total conversion to C++. Except for introducing
diff --git a/src/main.C b/src/main.C
index e67b8041ad8264ec44ca49ece715c6f3ec3126ea..
index ..0003027b6047adbfd3f699280c357b5ca25e17ce 100644
--- a/src/main.C
+++ b/src/main.C
@@ -323,12 +323,12 @@ rxvt_Child_signal(int sig __attribute__ ((unused)))
 RETSIGTYPE
 rxvt_Exit_signal(int sig)
 {
-  signal(sig, SIG_DFL);
+  signal (sig, SIG_DFL);
 #ifdef DEBUG_CMD
-  rxvt_print_error("signal %d", sig);
+  rxvt_print_error ("signal %d", sig);
 #endif
   rxvt_clean_exit();
-  kill(getpid(), sig);
+  kill (getpid (), sig);
 }

 /* INTPROTO */
@@ -355,7 +355,9 @@ rxvt_xerror_handler (Display *display, XErrorEvent *event)
 void
 rxvt_clean_exit ()
 {
-  GET_R->destroy ();
+  // TODO: rxvtd should clean up all ressources
+  if (GET_R)
+    GET_R->destroy ();
 }

 /* ------------------------------------------------------------------------- *

-----END OF PAGE-----