mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-12-23 18:39:48 +01:00
Allow clients to unset the selection
This commit is contained in:
parent
810c4b119b
commit
804c7a73a6
1 changed files with 3 additions and 3 deletions
|
@ -335,11 +335,11 @@ void wlr_seat_set_selection(struct wlr_seat *seat,
|
||||||
static void data_device_set_selection(struct wl_client *client,
|
static void data_device_set_selection(struct wl_client *client,
|
||||||
struct wl_resource *dd_resource, struct wl_resource *source_resource,
|
struct wl_resource *dd_resource, struct wl_resource *source_resource,
|
||||||
uint32_t serial) {
|
uint32_t serial) {
|
||||||
if (!source_resource) {
|
struct wlr_data_source *source = NULL;
|
||||||
return;
|
if (source_resource != NULL) {
|
||||||
|
source = wl_resource_get_user_data(source_resource);
|
||||||
}
|
}
|
||||||
|
|
||||||
struct wlr_data_source *source = wl_resource_get_user_data(source_resource);
|
|
||||||
struct wlr_seat_client *seat_client =
|
struct wlr_seat_client *seat_client =
|
||||||
wl_resource_get_user_data(dd_resource);
|
wl_resource_get_user_data(dd_resource);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue