aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2017-12-23 00:03:15 +0100
committeremersion <contact@emersion.fr>2017-12-23 00:03:15 +0100
commit077bdfa789b2277a85603d4f72d5236551bba479 (patch)
tree5660f916df54cc021bfce33b1723c5b2896b52c3
parent4476f798508341b9ac931f9e623d7b77197a163a (diff)
Send primary selection when clients get keyboard focus
-rw-r--r--types/wlr_seat.c2
1 files changed, 2 insertions, 0 deletions
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 <wlr/types/wlr_input_device.h>
#include <wlr/util/log.h>
#include <wlr/types/wlr_data_device.h>
+#include <wlr/types/wlr_primary_selection.h>
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