From e425208308e1bba359469f77064196ce566ba62a Mon Sep 17 00:00:00 2001 From: root Date: Mon, 7 Aug 2006 15:12:48 +0000 Subject: [PATCH] *** empty log message *** --- Changes | 2 ++ src/rxvttoolkit.C | 12 +++++++++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/Changes b/Changes index 8b2455a7..4c1a9c65 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 ea758265..bd810244 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) -- 2.34.1