diff options
author | Robin Watts <Robin.Watts@artifex.com> | 2012-03-15 17:22:31 +0000 |
---|---|---|
committer | Robin Watts <Robin.Watts@artifex.com> | 2012-03-15 17:22:31 +0000 |
commit | 789c740e33c0cc381e8f23327c7745cbdaa4c860 (patch) | |
tree | d34b2fce7be328687884a7b3505a5674760b4450 /apps/x11_main.c | |
parent | 0338f00e07c5ae1f1c67b78db6454100c839db3c (diff) | |
download | mupdf-789c740e33c0cc381e8f23327c7745cbdaa4c860.tar.xz |
Bug 692871: Improve X11 cut/paste handling
Take on Johann Giwers patch for X11 cut/paste handling. Many
thanks.
Also remove a stray printf.
Diffstat (limited to 'apps/x11_main.c')
-rw-r--r-- | apps/x11_main.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/x11_main.c b/apps/x11_main.c index 447ebeb2..b62f97db 100644 --- a/apps/x11_main.c +++ b/apps/x11_main.c @@ -503,7 +503,6 @@ void onselreq(Window requestor, Atom selection, Atom target, Atom property, Time atomlist[1] = XA_TIMESTAMP; atomlist[2] = XA_STRING; atomlist[3] = XA_UTF8_STRING; - printf(" -> targets\n"); XChangeProperty(xdpy, requestor, property, target, 32, PropModeReplace, (unsigned char *)atomlist, sizeof(atomlist)/sizeof(Atom)); @@ -528,7 +527,7 @@ void onselreq(Window requestor, Atom selection, Atom target, Atom property, Time nevt.xselection.property = None; } - XSendEvent(xdpy, requestor, False, SelectionNotify, &nevt); + XSendEvent(xdpy, requestor, False, 0, &nevt); } void winreloadfile(pdfapp_t *app) |