Browse Source
Merge pull request #11929 from viordash/x11-clipboard
[clipboard-x11] fix SendDataRequest re-run task
pull/11956/head
Max Katz
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
src/Avalonia.X11/X11Clipboard.cs
|
|
|
@ -224,7 +224,7 @@ namespace Avalonia.X11 |
|
|
|
|
|
|
|
private Task<object> SendDataRequest(IntPtr format) |
|
|
|
{ |
|
|
|
if (_requestedDataTcs == null || _requestedFormatsTcs.Task.IsCompleted) |
|
|
|
if (_requestedDataTcs == null || _requestedDataTcs.Task.IsCompleted) |
|
|
|
_requestedDataTcs = new TaskCompletionSource<object>(); |
|
|
|
XConvertSelection(_x11.Display, _x11.Atoms.CLIPBOARD, format, format, _handle, IntPtr.Zero); |
|
|
|
return _requestedDataTcs.Task; |
|
|
|
|