diff options
author | Jon TURNEY <jon.turney@dronecode.org.uk> | 2012-02-13 18:32:39 +0000 |
---|---|---|
committer | Jon TURNEY <jon.turney@dronecode.org.uk> | 2015-02-08 15:11:11 +0000 |
commit | 9a92a5cd304e562d0788a4a2910ed41a63a07404 (patch) | |
tree | b76cc8ea10862f99a6569e6fd077ec9361011e14 | |
parent | 28f6427aec1f5a1982e1c01eff45af0d401bf659 (diff) |
clipboard debug: Log atom name on PropertyNotify
v2
Also indicate if PropertyNotify is PropertyNewValue or PropertyDelete
-rw-r--r-- | hw/xwin/winclipboard/xevents.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/hw/xwin/winclipboard/xevents.c b/hw/xwin/winclipboard/xevents.c index 835195b52..f0d5aca31 100644 --- a/hw/xwin/winclipboard/xevents.c +++ b/hw/xwin/winclipboard/xevents.c @@ -778,6 +778,15 @@ winClipboardFlushXEvents(HWND hwnd, break; case PropertyNotify: + { + char *pszAtomName; + + pszAtomName = XGetAtomName(pDisplay, event.xproperty.atom); + winDebug("winClipboardFlushXEvents - PropertyNotify - ATOM: %s %s\n", + pszAtomName, + event.xproperty.state == PropertyNewValue ? "PropertyNewValue" : "PropertyDelete"); + XFree(pszAtomName); + } break; case MappingNotify: |