From: sf-exg Date: Mon, 22 Feb 2010 09:47:41 +0000 (+0000) Subject: Fix last change to set_selection_owner, selection_clear resets X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=a30a023d4468a58114e5b6ada5838173f8226766;p=dana%2Furxvt.git Fix last change to set_selection_owner, selection_clear resets {selection,clipboard}_owner so we cannot use a reference to call flush. --- 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;