diff --git a/ChangeLog b/ChangeLog index fb161b0..60afcda 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2011-03-23 Fred Kiefer + + * Tools/xpbs.m (-pasteboard:provideDataForType:, -availableTypes) + (-xSelectionNotify:): Better handling of plain text data types. + 2011-03-18 Fred Kiefer * Source/x11/XGServerWindow.m: Extract the bitmap conversion into diff --git a/Tools/xpbs.m b/Tools/xpbs.m index 03188e1..3f38a0e 100644 --- a/Tools/xpbs.m +++ b/Tools/xpbs.m @@ -638,6 +638,8 @@ static NSString *xWaitMode = @"XPasteboardWaitMode"; [self requestData: XG_UTF8_STRING]; if ([self data] == nil) [self requestData: XA_STRING]; + if ([self data] == nil) + [self requestData: XG_TEXT]; } else if ([type isEqual: NSFilenamesPboardType]) { @@ -734,7 +736,9 @@ xErrorHandler(Display *d, XErrorEvent *e) type = targets[i]; if ((type == XG_UTF8_STRING) - ||(type == XA_STRING)) + || (type == XA_STRING) + || (type == XG_TEXT) + || (type == XG_MIME_PLAIN)) { [types addObject: NSStringPboardType]; } @@ -944,7 +948,9 @@ xErrorHandler(Display *d, XErrorEvent *e) [self setData: d]; } } - else if (actual_type == XA_STRING) + else if ((actual_type == XA_STRING) + || (actual_type == XG_TEXT) + || (actual_type == XG_MIME_PLAIN)) { NSString *s; NSData *d;