summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;