mirror of
https://github.com/lbonn/rofi
synced 2024-11-26 22:00:20 +00:00
Wayland: fix wayland-only build
This commit is contained in:
parent
d44b81e778
commit
e861df39f2
1 changed files with 13 additions and 4 deletions
|
@ -790,10 +790,19 @@ static void rofi_view_trigger_global_action(KeyBindingAction action) {
|
|||
data = g_strdup(state->text->text);
|
||||
}
|
||||
if (data) {
|
||||
xcb_stuff_set_clipboard(data);
|
||||
xcb_set_selection_owner(xcb->connection, CacheState.main_window,
|
||||
netatoms[CLIPBOARD], XCB_CURRENT_TIME);
|
||||
xcb_flush(xcb->connection);
|
||||
#ifdef ENABLE_XCB
|
||||
if (config.backend == DISPLAY_XCB) {
|
||||
xcb_stuff_set_clipboard(data);
|
||||
xcb_set_selection_owner(xcb->connection, CacheState.main_window,
|
||||
netatoms[CLIPBOARD], XCB_CURRENT_TIME);
|
||||
xcb_flush(xcb->connection);
|
||||
}
|
||||
#endif
|
||||
#ifdef ENABLE_WAYLAND
|
||||
if (config.backend == DISPLAY_WAYLAND) {
|
||||
// TODO
|
||||
}
|
||||
#endif
|
||||
}
|
||||
} break;
|
||||
case SCREENSHOT:
|
||||
|
|
Loading…
Reference in a new issue