aboutsummaryrefslogtreecommitdiffstats
path: root/src/wth-receiver-seat.c
diff options
context:
space:
mode:
authorMarius Vlad <marius.vlad@collabora.com>2020-11-02 16:51:08 +0200
committerMarius Vlad <marius.vlad@collabora.com>2020-12-01 13:07:57 +0200
commit8fcbed84cfefcfe648584941587e6d06abf59c3e (patch)
tree4a370a19465e12543e74563fc136cf916554ca6f /src/wth-receiver-seat.c
parent2373db4b31a646d4936f6700ecc2af857302444b (diff)
wth-receiver: Handle events from the remote side and from the local compositor
With this, we fork and let the child deal with the gstreamer pipeline while the parent is still able to process events from the transimtter. Using blocking dispatching function will make the main loop be stuck in processing events without being able to dispatch any handlers that might be due to the requests from the transmistter side. So in order to allow the mainloop (still) handle the events, we fork and let child deal with the gstreamer pipeline. Bug-AGL: SPEC-3675 Signed-off-by: Marius Vlad <marius.vlad@collabora.com> Change-Id: I50e1d49b55849dc32f611538bad2ce1c676c9a97
Diffstat (limited to 'src/wth-receiver-seat.c')
-rw-r--r--src/wth-receiver-seat.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/wth-receiver-seat.c b/src/wth-receiver-seat.c
index f4b4886..f137e01 100644
--- a/src/wth-receiver-seat.c
+++ b/src/wth-receiver-seat.c
@@ -35,9 +35,9 @@ waltham_touch_down(struct window *window, uint32_t serial,
uint32_t time, int32_t id,
wl_fixed_t x_w, wl_fixed_t y_w)
{
- struct surface *surface = window->receiver_surf;
struct seat *seat = window->receiver_seat;
struct touch *touch = seat->touch;
+ struct surface *surface = window->receiver_surf;
if (!touch) {
fprintf(stderr, "We do not have touch device!\n");
@@ -45,7 +45,6 @@ waltham_touch_down(struct window *window, uint32_t serial,
}
if (touch->obj) {
- fprintf(stdout, "waltham_touch_down() sending touch_down\n");
wthp_touch_send_down(touch->obj, serial, time, surface->obj, id, x_w, y_w);
}
return;
@@ -64,7 +63,6 @@ waltham_touch_up(struct window *window, uint32_t serial,
}
if (touch->obj) {
- fprintf(stdout, "waltham_touch_motion() sending touch_up\n");
wthp_touch_send_up(touch->obj, serial, time, id);
}
return;
@@ -83,7 +81,6 @@ waltham_touch_motion(struct window *window, uint32_t time,
}
if (touch->obj) {
- fprintf(stdout, "waltham_touch_motion() sending touch_motion\n");
wthp_touch_send_motion(touch->obj, time, id, x_w, y_w);
}
}
@@ -100,7 +97,6 @@ waltham_touch_frame(struct window *window)
}
if (touch->obj) {
- fprintf(stdout, "waltham_touch_frame() sending frame\n");
wthp_touch_send_frame(touch->obj);
}
}
@@ -353,9 +349,6 @@ client_bind_seat(struct client *c, struct wthp_seat *obj)
seat->client = c;
wl_list_insert(&c->seat_list, &seat->link);
- fprintf(stdout, "wthp_seat object=%p and seat=%p\n",obj,seat);
wthp_seat_set_interface(obj, &seat_implementation, seat);
-
- fprintf(stdout, "client %p bound wthp_seat\n", c);
seat_send_updated_caps(seat);
}