X11: backed out changeset 03ebf4f9a91d
This is no good, it completely trashes copy-paste on X11.
--- a/XWorkstation.st Fri Sep 29 08:01:04 2017 +0100
+++ b/XWorkstation.st Tue Oct 03 11:38:15 2017 +0100
@@ -13643,36 +13643,34 @@
incremental := false.
[
- |timeout|
-
- display registerSelectionFetcher:self.
-
- display
- requestSelection:aSelectionId
- type:aTargetId
- for:drawableID
- intoProperty:propertyID.
-
- timeout := 500"ms".
- [
- |currentMessage|
-
- (sema waitWithTimeoutMs:timeout) isNil ifTrue:[
- "the selection owner didn't respond within reasonable time"
- 'XWorkstation(error): selection owner does not respond:' infoPrint. display infoPrintCR.
- ^ nil.
- ].
- currentMessage := message.
- message := nil.
- currentMessage notNil ifTrue:[currentMessage sendTo:self].
- ] doUntil:[done].
+ |timeout|
+
+ display registerSelectionFetcher:self.
+
+ display
+ requestSelection:aSelectionId
+ type:aTargetId
+ for:drawableID
+ intoProperty:propertyID.
+
+ timeout := display xlibTimeout.
+ [
+ |currentMessage|
+
+ (sema waitWithTimeout:timeout) isNil ifTrue:[
+ "the selection owner didn't respond within reasonable time"
+ 'XWorkstation(error): selection owner does not respond:' infoPrint. display infoPrintCR.
+ ^ nil.
+ ].
+ currentMessage := message.
+ message := nil.
+ currentMessage notNil ifTrue:[currentMessage sendTo:self].
+ ] doUntil:[done].
] ensure:[
- display unregisterSelectionFetcher:self.
+ display unregisterSelectionFetcher:self.
].
^ self getSelection
-
- "Modified: / 29-09-2017 / 07:59:40 / Jan Vrany <jan.vrany@fit.cvut.cz>"
! !
!XWorkstation::SelectionFetcher methodsFor:'testing'!