mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-12-16 08:56:26 -05:00
interface/wlr_pointer: rework destroy sequence
The destroy callback in wlr_pointer_impl has been removed. The function `wlr_pointer_finish` has been introduced to clean up the resources owned by a wlr_pointer. `wlr_input_device_destroy` no longer destroys the wlr_pointer, attempting to destroy a wlr_pointer will result in a no-op. The field `name` has been added to the wlr_pointer_impl to be able to identify a given wlr_pointer device.
This commit is contained in:
parent
7dc4a3ecd7
commit
51cd3c0726
9 changed files with 40 additions and 59 deletions
|
|
@ -4,12 +4,8 @@
|
|||
#include "backend/libinput.h"
|
||||
#include "util/signal.h"
|
||||
|
||||
static void pointer_destroy(struct wlr_pointer *pointer) {
|
||||
/* wlr_pointer belongs to the wlr_libinput_input_device */
|
||||
}
|
||||
|
||||
const struct wlr_pointer_impl libinput_pointer_impl = {
|
||||
.destroy = pointer_destroy,
|
||||
.name = "libinput-pointer",
|
||||
};
|
||||
|
||||
void init_device_pointer(struct wlr_libinput_input_device *dev) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue