aboutsummaryrefslogtreecommitdiff
path: root/xorg-server/hw/xwin/winclipboardxevents.c
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2009-09-28 08:09:17 +0000
committermarha <marha@users.sourceforge.net>2009-09-28 08:09:17 +0000
commit1f7d7f73b06b5add892a284bf563e3f01a60df52 (patch)
tree8ee80ff731e2eab418f4b7e1dc05173215ffac86 /xorg-server/hw/xwin/winclipboardxevents.c
parent47989aafe4f7ac855d8969da28e1e0222dfe8f2b (diff)
downloadvcxsrv-1f7d7f73b06b5add892a284bf563e3f01a60df52.tar.gz
vcxsrv-1f7d7f73b06b5add892a284bf563e3f01a60df52.tar.bz2
vcxsrv-1f7d7f73b06b5add892a284bf563e3f01a60df52.zip
Removed most tracing in release versions.
Diffstat (limited to 'xorg-server/hw/xwin/winclipboardxevents.c')
-rw-r--r--xorg-server/hw/xwin/winclipboardxevents.c26
1 files changed, 9 insertions, 17 deletions
diff --git a/xorg-server/hw/xwin/winclipboardxevents.c b/xorg-server/hw/xwin/winclipboardxevents.c
index 11fde16b9..09aec03fc 100644
--- a/xorg-server/hw/xwin/winclipboardxevents.c
+++ b/xorg-server/hw/xwin/winclipboardxevents.c
@@ -36,7 +36,7 @@
#include "winclipboard.h"
#include "misc.h"
#include "winmsg.h"
-
+#include <unistd.h>
/*
* References to external symbols
@@ -275,7 +275,7 @@ winClipboardFlushXEvents (HWND hwnd,
XSetSelectionOwner (pDisplay, XA_PRIMARY, None, CurrentTime);
XSetSelectionOwner (pDisplay, XInternAtom (pDisplay, "CLIPBOARD", False), None, CurrentTime);
}
- ErrorF ("winClipboardFlushXEvents - SelectionRequest - "
+ ErrorF ("winClipboardFlushXEvents - SelectionRequest - "
"GetClipboardData () failed: %08x\n",
GetLastError ());
@@ -523,18 +523,14 @@ winClipboardFlushXEvents (HWND hwnd,
{
if (event.xselection.target == XA_STRING)
{
-#if 0
- ErrorF ("winClipboardFlushXEvents - SelectionNotify - "
+ winDebug ("winClipboardFlushXEvents - SelectionNotify - "
"XA_STRING\n");
-#endif
return WIN_XEVENTS_CONVERT;
}
else if (event.xselection.target == atomUTF8String)
{
-#if 0
- ErrorF ("winClipboardFlushXEvents - SelectionNotify - "
+ winDebug ("winClipboardFlushXEvents - SelectionNotify - "
"Requesting conversion of UTF8 target.\n");
-#endif
iReturn = XConvertSelection (pDisplay,
event.xselection.selection,
XA_STRING,
@@ -557,10 +553,8 @@ winClipboardFlushXEvents (HWND hwnd,
#ifdef X_HAVE_UTF8_STRING
else if (event.xselection.target == atomCompoundText)
{
-#if 0
- ErrorF ("winClipboardFlushXEvents - SelectionNotify - "
+ winDebug ("winClipboardFlushXEvents - SelectionNotify - "
"Requesting conversion of CompoundText target.\n");
-#endif
iReturn = XConvertSelection (pDisplay,
event.xselection.selection,
atomUTF8String,
@@ -611,10 +605,8 @@ winClipboardFlushXEvents (HWND hwnd,
break;
}
-#if 0
- ErrorF ("SelectionNotify - returned data %d left %d\n",
+ winDebug ("SelectionNotify - returned data %d left %d\n",
xtpText.nitems, ulReturnBytesLeft);
-#endif
/* Request the selection data */
iReturn = XGetWindowProperty (pDisplay,
@@ -637,15 +629,15 @@ winClipboardFlushXEvents (HWND hwnd,
break;
}
-#if 0
+#ifdef WINDBG
{
char *pszAtomName = NULL;
- ErrorF ("SelectionNotify - returned data %d left %d\n",
+ winDebug ("SelectionNotify - returned data %d left %d\n",
xtpText.nitems, ulReturnBytesLeft);
pszAtomName = XGetAtomName(pDisplay, xtpText.encoding);
- ErrorF ("Notify atom name %s\n", pszAtomName);
+ winDebug ("Notify atom name %s\n", pszAtomName);
XFree (pszAtomName);
pszAtomName = NULL;
}