Debug printf in linux paste

This commit is contained in:
Allen Webster 2017-11-27 12:29:44 -05:00
parent ede9083e71
commit 91db73cdff
1 changed files with 1 additions and 0 deletions

View File

@ -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;