Commit ad55ebc9 authored by Ulrich Sibiller's avatar Ulrich Sibiller Committed by Mike Gabriel

Clipboard.c: Fix: always reset selectionStage in endTransfer

parent f3320571
...@@ -1016,24 +1016,25 @@ static void endTransfer(Bool success) ...@@ -1016,24 +1016,25 @@ static void endTransfer(Bool success)
#ifdef DEBUG #ifdef DEBUG
fprintf(stderr, "%s: lastClientClientPtr is NULL - doing nothing.\n", __func__); fprintf(stderr, "%s: lastClientClientPtr is NULL - doing nothing.\n", __func__);
#endif #endif
return;
} }
#ifdef DEBUG
if (success == SELECTION_SUCCESS)
fprintf(stderr, "%s: sending notification to client [%d], property [%d][%s]\n", __func__,
CLINDEX(lastClientClientPtr), lastClientProperty, NameForAtom(lastClientProperty));
else else
fprintf(stderr, "%s: sending negative notification to client [%d]\n", __func__, {
CLINDEX(lastClientClientPtr)); #ifdef DEBUG
#endif if (success == SELECTION_SUCCESS)
fprintf(stderr, "%s: sending notification to client [%d], property [%d][%s]\n", __func__,
CLINDEX(lastClientClientPtr), lastClientProperty, NameForAtom(lastClientProperty));
else
fprintf(stderr, "%s: sending negative notification to client [%d]\n", __func__,
CLINDEX(lastClientClientPtr));
#endif
sendSelectionNotifyEventToClient(lastClientClientPtr, sendSelectionNotifyEventToClient(lastClientClientPtr,
lastClientTime, lastClientTime,
lastClientRequestor, lastClientRequestor,
lastClientSelection, lastClientSelection,
lastClientTarget, lastClientTarget,
success == SELECTION_SUCCESS ? lastClientProperty : None); success == SELECTION_SUCCESS ? lastClientProperty : None);
}
/* /*
* Enable further requests from clients. * Enable further requests from clients.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment