Use clipboard atom instead of XCB_ATOM_SECONDARY for pasting.

Should fix issue: #516
This commit is contained in:
Dave Davenport 2016-12-24 14:12:54 +01:00
parent d25989ed14
commit 3be5791fb2
2 changed files with 2 additions and 1 deletions

View file

@ -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 ), \

View file

@ -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;