summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2016-12-24 14:12:54 +0100
committerDave Davenport <qball@gmpclient.org>2016-12-24 14:13:31 +0100
commit3be5791fb2d7adecfa9969646904eba293e45772 (patch)
treee9fae01349d70d5c0feb31608d7e25bd2fe948c8
parentd25989ed14b54bc625f027f36c6358e46d05a3fb (diff)
Use clipboard atom instead of XCB_ATOM_SECONDARY for pasting.
Should fix issue: #516
-rw-r--r--include/x11-helper.h1
-rw-r--r--source/view.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/include/x11-helper.h b/include/x11-helper.h
index 80a32689..e950fdc7 100644
--- a/include/x11-helper.h
+++ b/include/x11-helper.h
@@ -44,6 +44,7 @@ void window_set_atom_prop ( xcb_window_t w, xcb_atom_t prop, xcb_atom_t *atoms,
X ( I3_SOCKET_PATH ), \
X ( UTF8_STRING ), \
X ( STRING ), \
+ X ( CLIPBOARD ), \
X ( WM_WINDOW_ROLE ), \
X ( _XROOTPMAP_ID ), \
X ( _MOTIF_WM_HINTS ), \
diff --git a/source/view.c b/source/view.c
index dde0be96..ca30c2b0 100644
--- a/source/view.c
+++ b/source/view.c
@@ -999,7 +999,7 @@ gboolean rofi_view_trigger_action ( RofiViewState *state, KeyBindingAction actio
xcb_flush ( xcb->connection );
break;
case PASTE_SECONDARY:
- xcb_convert_selection ( xcb->connection, CacheState.main_window, XCB_ATOM_SECONDARY,
+ xcb_convert_selection ( xcb->connection, CacheState.main_window, netatoms[CLIPBOARD],
xcb->ewmh.UTF8_STRING, xcb->ewmh.UTF8_STRING, XCB_CURRENT_TIME );
xcb_flush ( xcb->connection );
break;