From 077bdfa789b2277a85603d4f72d5236551bba479 Mon Sep 17 00:00:00 2001 From: emersion Date: Sat, 23 Dec 2017 00:03:15 +0100 Subject: [PATCH] Send primary selection when clients get keyboard focus --- types/wlr_seat.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/types/wlr_seat.c b/types/wlr_seat.c index feb78999..c1401b4a 100644 --- a/types/wlr_seat.c +++ b/types/wlr_seat.c @@ -8,6 +8,7 @@ #include #include #include +#include static void resource_destroy(struct wl_client *client, struct wl_resource *resource) { @@ -887,6 +888,7 @@ void wlr_seat_keyboard_enter(struct wlr_seat *seat, wl_array_release(&keys); wlr_seat_client_send_selection(client); + wlr_seat_client_send_primary_selection(client); } // reinitialize the focus destroy events