From 91db73cdff1218d87ff5278b0f80cd76a52fa1ce Mon Sep 17 00:00:00 2001 From: Allen Webster Date: Mon, 27 Nov 2017 12:29:44 -0500 Subject: [PATCH] Debug printf in linux paste --- platform_linux/linux_4ed.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/platform_linux/linux_4ed.cpp b/platform_linux/linux_4ed.cpp index e67c8789..9165a57a 100644 --- a/platform_linux/linux_4ed.cpp +++ b/platform_linux/linux_4ed.cpp @@ -1604,6 +1604,7 @@ LinuxHandleX11Events(void) int result = XGetWindowProperty(linuxvars.XDisplay, linuxvars.XWindow, linuxvars.atom_CLIPBOARD, 0L, LINUX_MAX_PASTE_CHARS/4L, False, linuxvars.atom_UTF8_STRING, &type, &fmt, &nitems, &bytes_left, &data); if (result == Success && fmt == 8){ + fprintf(stdout, "nitems = %lu\n", nitems); LinuxStringDup(&linuxvars.clipboard_contents, data, nitems); should_step = true; linuxvars.new_clipboard = true;