mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-19 10:58:10 +02:00
In the wl_seat conversion, struct wl_touch got fields for the focused surface and the client resource for the input device being focused. However, the conversion was incomplete: the old fields weston_seat::touch_focus* we still used by the event dispatching code, but the new code never set them. Therefore no touch events were ever sent. From weston_seat, remove the fields touch_focus, touch_focus_listener, touch_focus_resource, and touch_focus_resource_listener. They are replaced by the corresponding fields and listeners from struct wl_touch. While doing this, fix touch_set_focus(). If touch_set_focus() was called first with surface A, and then with surface B, without being called with NULL in between, it would corrupt the destroy_signal list. It was equivalent of calling wl_signal_add() for different signal sources with the same listener without removing in between. Now, touch_set_focus() first removes focus and listeners, and then attempts to assign focus if requested. If the target client has not subscribed for touch events, the touch focus will now be NULL. Before this patch, the touch focus was left to the previous surface. NOTE: this patch depends on the patch "server: add lose_touch_focus()" for Wayland. Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com> |
||
|---|---|---|
| .. | ||
| xwayland | ||
| .gitignore | ||
| android-framebuffer.cpp | ||
| android-framebuffer.h | ||
| clipboard.c | ||
| compositor-android.c | ||
| compositor-drm.c | ||
| compositor-openwfd.c | ||
| compositor-wayland.c | ||
| compositor-x11.c | ||
| compositor.c | ||
| compositor.h | ||
| evdev-private.h | ||
| evdev-touchpad.c | ||
| evdev.c | ||
| evdev.h | ||
| filter.c | ||
| filter.h | ||
| launcher-util.c | ||
| launcher-util.h | ||
| libbacklight.c | ||
| libbacklight.h | ||
| log.c | ||
| log.h | ||
| Makefile.am | ||
| matrix.c | ||
| matrix.h | ||
| screenshooter.c | ||
| shell.c | ||
| tablet-shell.c | ||
| text-backend.c | ||
| tty.c | ||
| util.c | ||
| weston-egl-ext.h | ||
| weston-launch.c | ||
| weston-launch.h | ||
| zoom.c | ||