mirror of
https://github.com/lbonn/rofi
synced 2025-02-17 05:18:31 +00:00
Use clipboard atom instead of XCB_ATOM_SECONDARY for pasting.
Should fix issue: #516
This commit is contained in:
parent
d25989ed14
commit
3be5791fb2
2 changed files with 2 additions and 1 deletions
|
@ -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 ), \
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue