From da892056f1127f0825ef0f0569e094bdfb752f65 Mon Sep 17 00:00:00 2001 From: fvogel Date: Wed, 15 Aug 2018 15:53:14 +0000 Subject: Revert [b4c5f163] since it breaks paste function with text from another application, see [568827f41c] --- macosx/tkMacOSXClipboard.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/macosx/tkMacOSXClipboard.c b/macosx/tkMacOSXClipboard.c index 6763a7a..07a8419 100644 --- a/macosx/tkMacOSXClipboard.c +++ b/macosx/tkMacOSXClipboard.c @@ -125,8 +125,8 @@ TkSelGetSelection( int result = TCL_ERROR; TkDisplay *dispPtr = ((TkWindow *) tkwin)->dispPtr; - if (dispPtr && dispPtr->clipboardActive && selection == dispPtr->clipboardAtom - && (target == XA_STRING || target == dispPtr->utf8Atom)) { + if (dispPtr && selection == dispPtr->clipboardAtom && (target == XA_STRING + || target == dispPtr->utf8Atom)) { NSString *string = nil; NSPasteboard *pb = [NSPasteboard generalPasteboard]; NSString *type = [pb availableTypeFromArray:[NSArray arrayWithObject: -- cgit v0.12