repo: rxvt-unicode-sixel
action: commit
revision: 
path_from: 
revision_from: a37c4af9feb6407be97a5d8a8b8e6067789cb718:
path_to: 
revision_to: 
git.thebackupbox.net
rxvt-unicode-sixel
git clone git://git.thebackupbox.net/rxvt-unicode-sixel
commit a37c4af9feb6407be97a5d8a8b8e6067789cb718
Author: Marc Lehmann 
Date:   Mon Aug 7 15:12:48 2006 +0000

    *** empty log message ***

diff --git a/Changes b/Changes
index 8b2455a72e76b6eefc3147e76a0cbd26b8003da5..
index ..4c1a9c657af3903cda498d983a053fea857f703a 100644
--- a/Changes
+++ b/Changes
@@ -28,6 +28,8 @@ DUMB: support tex fonts
 	- fix urxvtc.1.pod: it actually claimed -pty-fd would not work. But
           it does! :->
 	- rxvt_fatal() in case the locale string is too long for our static buffer.
+        - hopefully fix the crashing bug people encounter with 7.8
+          (triggered by using transparency + perl).

 7.8  Mon Jul 17 21:00:46 CEST 2006
 	- INCOMPATIBLE CHANGE: this version will always read ~/.Xdefaults,
diff --git a/src/rxvttoolkit.C b/src/rxvttoolkit.C
index ea7582656c9d249d06bc053e06e401b149907b3c..
index ..bd8102441d0e9584364472086aea06d026f94ba2 100644
--- a/src/rxvttoolkit.C
+++ b/src/rxvttoolkit.C
@@ -581,14 +581,20 @@ void rxvt_display::flush ()

 void rxvt_display::reg (xevent_watcher *w)
 {
-  xw.push_back (w);
-  w->active = xw.size ();
+  if (!w.active)
+    {
+      xw.push_back (w);
+      w->active = xw.size ();
+    }
 }

 void rxvt_display::unreg (xevent_watcher *w)
 {
   if (w->active)
-    xw[w->active - 1] = 0;
+    {
+      xw[w->active - 1] = 0;
+      w->active = 0;
+    }
 }

 void rxvt_display::set_selection_owner (rxvt_term *owner)

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