Revert "Make sure we don't break #34 in new pre-ownership"
This reverts commit fe69861101
.
This commit is contained in:
parent
6825c302dc
commit
9a52f7ddba
|
@ -125,10 +125,7 @@ while true; do
|
||||||
# Primary is excluded from the change of ownership as applications
|
# Primary is excluded from the change of ownership as applications
|
||||||
# sometimes act up if clipboard focus is taken away from them --
|
# sometimes act up if clipboard focus is taken away from them --
|
||||||
# for example, urxvt will unhilight text, which is undesirable.
|
# for example, urxvt will unhilight text, which is undesirable.
|
||||||
#
|
_xsel -o --clipboard | _xsel -i --clipboard
|
||||||
# We need to check if the clipboard is empty to mitigate #34.
|
|
||||||
data=$(_xsel -o --clipboard; printf x)
|
|
||||||
[[ $data != x ]] && _xsel -i --clipboard <<< "${data%x}"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! (( CM_ONESHOT )); then
|
if ! (( CM_ONESHOT )); then
|
||||||
|
|
Loading…
Reference in a new issue