summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2011-02-18 19:00:25 +0100
committerHans de Goede <hdegoede@redhat.com>2011-03-30 15:40:13 +0200
commit054d34452eae3fbed594a4e5d89af0707cd678d0 (patch)
treefef8f5abbf53ad425b7045b7230d13c2083d3568
parentccf2c69f07ecb03b4f04ea06fe713e699ec8ff3a (diff)
x11: get PRIMARY clipboard atom
https://bugs.freedesktop.org/show_bug.cgi?id=34878
-rw-r--r--vdagent-x11.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/vdagent-x11.c b/vdagent-x11.c
index 1629d24..4715a44 100644
--- a/vdagent-x11.c
+++ b/vdagent-x11.c
@@ -7,12 +7,12 @@
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
- the Free Software Foundation, either version 3 of the License, or
+ the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
@@ -76,6 +76,7 @@ struct vdagent_x11 {
struct clipboard_format_info clipboard_formats[clipboard_format_count];
Display *display;
Atom clipboard_atom;
+ Atom clipboard_primary_atom;
Atom targets_atom;
Atom incr_atom;
Atom multiple_atom;
@@ -151,6 +152,7 @@ struct vdagent_x11 *vdagent_x11_create(struct udscs_connection *vdagentd,
x11->root_window = RootWindow(x11->display, x11->screen);
x11->fd = ConnectionNumber(x11->display);
x11->clipboard_atom = XInternAtom(x11->display, "CLIPBOARD", False);
+ x11->clipboard_primary_atom = XInternAtom(x11->display, "PRIMARY", False);
x11->targets_atom = XInternAtom(x11->display, "TARGETS", False);
x11->incr_atom = XInternAtom(x11->display, "INCR", False);
x11->multiple_atom = XInternAtom(x11->display, "MULTIPLE", False);