From 47aa9bcf5eb537456abc393699c8fec07a4d5153 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 4 Mar 2011 16:27:43 +0200 Subject: Fix code style. --- src/utils/copynpaste.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'src/utils') diff --git a/src/utils/copynpaste.cpp b/src/utils/copynpaste.cpp index 0edcb39bc..73ab1b35c 100644 --- a/src/utils/copynpaste.cpp +++ b/src/utils/copynpaste.cpp @@ -242,7 +242,8 @@ bool retrieveBuffer(std::string& text, std::string::size_type& pos) } #elif USE_X11 -static char* getSelection2(Display *dpy, Window us, Atom selection, Atom request_target) +static char* getSelection2(Display *dpy, Window us, Atom selection, + Atom request_target) { int max_events = 50; Window owner = XGetSelectionOwner(dpy, selection); @@ -254,7 +255,8 @@ static char* getSelection2(Display *dpy, Window us, Atom selection, Atom request //printf("No owner\n"); return NULL; } - XConvertSelection(dpy, selection, request_target, XA_PRIMARY, us, CurrentTime); + XConvertSelection(dpy, selection, request_target, + XA_PRIMARY, us, CurrentTime); XFlush(dpy); while (max_events --) @@ -264,8 +266,9 @@ static char* getSelection2(Display *dpy, Window us, Atom selection, Atom request XNextEvent(dpy, &e); if (e.type == SelectionNotify) { - printf("Received %s, %s, %s\n", XGetAtomName(dpy, selection), - XGetAtomName(dpy, e.xselection.selection), XGetAtomName(dpy, request_target)); +// printf("Received %s, %s, %s\n", XGetAtomName(dpy, selection), +// XGetAtomName(dpy, e.xselection.selection), +// XGetAtomName(dpy, request_target)); if (e.xselection.property == None) { //printf("Couldn't convert\n"); -- cgit v1.2.3-70-g09d2