summaryrefslogtreecommitdiff
path: root/src/utils/copynpaste.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-03-04 16:27:43 +0200
committerAndrei Karas <akaras@inbox.ru>2011-03-04 16:27:43 +0200
commit47aa9bcf5eb537456abc393699c8fec07a4d5153 (patch)
tree453309d61789d8b27879abcc98c013cc7affd576 /src/utils/copynpaste.cpp
parentc3669ceb38114c68a6de11de46b0d3fd3713db59 (diff)
downloadplus-47aa9bcf5eb537456abc393699c8fec07a4d5153.tar.gz
plus-47aa9bcf5eb537456abc393699c8fec07a4d5153.tar.bz2
plus-47aa9bcf5eb537456abc393699c8fec07a4d5153.tar.xz
plus-47aa9bcf5eb537456abc393699c8fec07a4d5153.zip
Fix code style.
Diffstat (limited to 'src/utils/copynpaste.cpp')
-rw-r--r--src/utils/copynpaste.cpp11
1 files changed, 7 insertions, 4 deletions
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");