From a30a023d4468a58114e5b6ada5838173f8226766 Mon Sep 17 00:00:00 2001 From: sf-exg Date: Mon, 22 Feb 2010 09:47:41 +0000 Subject: [PATCH] Fix last change to set_selection_owner, selection_clear resets {selection,clipboard}_owner so we cannot use a reference to call flush. --- src/rxvttoolkit.C | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/rxvttoolkit.C b/src/rxvttoolkit.C index 77c908f4..5f70647b 100644 --- a/src/rxvttoolkit.C +++ b/src/rxvttoolkit.C @@ -609,8 +609,9 @@ void rxvt_display::set_selection_owner (rxvt_term *owner, bool clipboard) if (cur_owner && cur_owner != owner) { - cur_owner->selection_clear (clipboard); - cur_owner->flush (); + rxvt_term *term = cur_owner; + term->selection_clear (clipboard); + term->flush (); } cur_owner = owner; -- 2.34.1