diff options
author | Alexander Preisinger <alexander.preisinger@gmail.com> | 2014-01-08 16:16:43 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-01-15 20:49:55 +0100 |
commit | f5b92bee5e235008de9ef6a3fddfbc298f4d853e (patch) | |
tree | 639bd5ba77186ab586e8bac6f3941279b9c36b7b /video/out/wayland_common.c | |
parent | ca3d7144db083ce8820583adf29393a7cdd27293 (diff) | |
download | mpv-f5b92bee5e235008de9ef6a3fddfbc298f4d853e.tar.bz2 mpv-f5b92bee5e235008de9ef6a3fddfbc298f4d853e.tar.xz |
wayland: remove set_user_data from seat_listener
The user_data is passed on add_listener and can later be changed with
set_user_data. But because we don't want to change it later and because it is
the same object remove the set_user_data call.
This might be a copy&paste leftover from the initial draft for the wayland
backend.
Diffstat (limited to 'video/out/wayland_common.c')
-rw-r--r-- | video/out/wayland_common.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/video/out/wayland_common.c b/video/out/wayland_common.c index f354b6dcd9..737d30582d 100644 --- a/video/out/wayland_common.c +++ b/video/out/wayland_common.c @@ -443,7 +443,6 @@ static void seat_handle_capabilities(void *data, if ((caps & WL_SEAT_CAPABILITY_KEYBOARD) && !wl->input.keyboard) { wl->input.keyboard = wl_seat_get_keyboard(seat); - wl_keyboard_set_user_data(wl->input.keyboard, wl); wl_keyboard_add_listener(wl->input.keyboard, &keyboard_listener, wl); } else if (!(caps & WL_SEAT_CAPABILITY_KEYBOARD) && wl->input.keyboard) { @@ -452,7 +451,6 @@ static void seat_handle_capabilities(void *data, } if ((caps & WL_SEAT_CAPABILITY_POINTER) && !wl->input.pointer) { wl->input.pointer = wl_seat_get_pointer(seat); - wl_pointer_set_user_data(wl->input.pointer, wl); wl_pointer_add_listener(wl->input.pointer, &pointer_listener, wl); } else if (!(caps & WL_SEAT_CAPABILITY_POINTER) && wl->input.pointer) { |