Commit b07b6c53 authored by Ulrich Sibiller's avatar Ulrich Sibiller

Clipboard.c: fix bug in special optimization for nested settings

Fixes ArcticaProject/nx-libs#941
parent 522eea6f
...@@ -2031,11 +2031,12 @@ int nxagentSendNotify(xEvent *event) ...@@ -2031,11 +2031,12 @@ int nxagentSendNotify(xEvent *event)
* communication happens completely between our own clients (some of * communication happens completely between our own clients (some of
* which can be nxagents themselves). In that case we return 0 (tell * which can be nxagents themselves). In that case we return 0 (tell
* dix to go on) and do nothing! * dix to go on) and do nothing!
* Be sure to not let this trigger for the failure answer (property 0)
*/ */
if (event->u.selectionNotify.property != clientCutProperty || lastServerRequestor == None) if (!(event->u.selectionNotify.property == clientCutProperty || event->u.selectionNotify.property == 0) || lastServerRequestor == None)
{ {
#ifdef DEBUG #ifdef DEBUG
fprintf(stderr, "%s: sent nothing.\n", __func__); fprintf(stderr, "%s: sent nothing - message to real X server is not required.\n", __func__);
#endif #endif
return 0; return 0;
} }
......
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