mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-12-23 18:39:48 +01:00
Send primary selection when clients get keyboard focus
This commit is contained in:
parent
4476f79850
commit
077bdfa789
1 changed files with 2 additions and 0 deletions
|
@ -8,6 +8,7 @@
|
||||||
#include <wlr/types/wlr_input_device.h>
|
#include <wlr/types/wlr_input_device.h>
|
||||||
#include <wlr/util/log.h>
|
#include <wlr/util/log.h>
|
||||||
#include <wlr/types/wlr_data_device.h>
|
#include <wlr/types/wlr_data_device.h>
|
||||||
|
#include <wlr/types/wlr_primary_selection.h>
|
||||||
|
|
||||||
static void resource_destroy(struct wl_client *client,
|
static void resource_destroy(struct wl_client *client,
|
||||||
struct wl_resource *resource) {
|
struct wl_resource *resource) {
|
||||||
|
@ -887,6 +888,7 @@ void wlr_seat_keyboard_enter(struct wlr_seat *seat,
|
||||||
wl_array_release(&keys);
|
wl_array_release(&keys);
|
||||||
|
|
||||||
wlr_seat_client_send_selection(client);
|
wlr_seat_client_send_selection(client);
|
||||||
|
wlr_seat_client_send_primary_selection(client);
|
||||||
}
|
}
|
||||||
|
|
||||||
// reinitialize the focus destroy events
|
// reinitialize the focus destroy events
|
||||||
|
|
Loading…
Reference in a new issue