From: Roberto E. Vargas Caballero Date: Wed, 5 Sep 2012 19:55:45 +0000 (+0200) Subject: Unhighlight selection when selection is owner by other window X-Git-Url: https://git.xinqibao.xyz/st.git/commitdiff_plain/f471a32d29ad9e5e06cf5e5d5efc8422483f535e?ds=inline;hp=f471a32d29ad9e5e06cf5e5d5efc8422483f535e Unhighlight selection when selection is owner by other window st marks the active selection using reverse colors in the box selection, but once that another window becomes owner of the selection, it is very confusing that st keeps highlight the old selection. Usually terminal emulators remove the highlight when it is not valid anymore. X sends a SelectionClear event in this situation, so we only have to add a callback which unhighlight the selectin box. --- st.c | 9 +++++++++ 1 file changed, 9 insertions(+) ---