mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-30 00:15:58 +01:00
Merge pull request #400 from Timidger/data_device_destructor
Adds wlr_data_device_manager destructor
This commit is contained in:
commit
ca3c373c18
2 changed files with 13 additions and 0 deletions
|
@ -74,6 +74,11 @@ struct wlr_drag {
|
||||||
struct wlr_data_device_manager *wlr_data_device_manager_create(
|
struct wlr_data_device_manager *wlr_data_device_manager_create(
|
||||||
struct wl_display *display);
|
struct wl_display *display);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Destroys a wlr_data_device_manager and removes its wl_data_device_manager global.
|
||||||
|
*/
|
||||||
|
void wlr_data_device_manager_destroy(struct wlr_data_device_manager *manager);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a new wl_data_offer if there is a wl_data_source currently set as
|
* Creates a new wl_data_offer if there is a wl_data_source currently set as
|
||||||
* the seat selection and sends it to the seat client, followed by the
|
* the seat selection and sends it to the seat client, followed by the
|
||||||
|
|
|
@ -815,3 +815,11 @@ struct wlr_data_device_manager *wlr_data_device_manager_create(
|
||||||
|
|
||||||
return manager;
|
return manager;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void wlr_data_device_manager_destroy(struct wlr_data_device_manager *manager) {
|
||||||
|
if (!manager) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
wl_global_destroy(manager->global);
|
||||||
|
free(manager);
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue