[Debian-on-mobile-maintainers] [Git][DebianOnMobile-team/phoc][debian/master] 2 commits: d/patches: handle touch frame events
Arnaud Ferraris (@a-wai)
gitlab at salsa.debian.org
Mon Apr 4 13:01:07 BST 2022
Arnaud Ferraris pushed to branch debian/master at Debian On Mobile / phoc
Commits:
90e04254 by Arnaud Ferraris at 2022-04-04T13:50:39+02:00
d/patches: handle touch frame events
Not doing so disabled touch input for Qt-based applications, let's fix
that.
Closes: #1008919
- - - - -
c3df0e4e by Arnaud Ferraris at 2022-04-04T13:51:31+02:00
d/changelog: release version 0.13.1-2
- - - - -
3 changed files:
- debian/changelog
- debian/patches/series
- + debian/patches/wlroots-0.15.1/cursor-Handle-touch-frame-event.patch
Changes:
=====================================
debian/changelog
=====================================
@@ -1,3 +1,11 @@
+phoc (0.13.1-2) unstable; urgency=medium
+
+ * d/patches: handle touch frame events.
+ Not doing so disabled touch input for Qt-based applications, let's fix
+ that. (Closes: #1008919)
+
+ -- Arnaud Ferraris <arnaud.ferraris at gmail.com> Mon, 04 Apr 2022 13:50:44 +0200
+
phoc (0.13.1-1) unstable; urgency=medium
* New upstream version 0.13.1
=====================================
debian/patches/series
=====================================
@@ -8,3 +8,4 @@ wlroots-0.15.1/output-Handle-failure-to-create-renderer.patch
wlroots-0.15.1/renderer-Make-sure-the-modifier-list-isn-t-empty.patch
wlroots-0.15.1/build-Require-wlroots-0.15.1.patch
wlroots-0.15.1/output-Clear-list-of-layers-on-finalize.patch
+wlroots-0.15.1/cursor-Handle-touch-frame-event.patch
=====================================
debian/patches/wlroots-0.15.1/cursor-Handle-touch-frame-event.patch
=====================================
@@ -0,0 +1,75 @@
+From: =?utf-8?q?Guido_G=C3=BCnther?= <agx at sigxcpu.org>
+Date: Mon, 4 Apr 2022 10:58:16 +0200
+Subject: cursor: Handle touch frame event
+
+See https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/3001
+Closes: https://gitlab.gnome.org/World/Phosh/phoc/-/issues/261
+
+Origin: other, https://gitlab.gnome.org/guidog/phoc/-/commit/19de541b7e2ebb5a664fb476fdbd89262044205c
+Forwarded: https://gitlab.gnome.org/World/Phosh/phoc/-/merge_requests/329
+---
+ src/cursor.c | 17 +++++++++++++++++
+ src/cursor.h | 1 +
+ 2 files changed, 18 insertions(+)
+
+diff --git a/src/cursor.c b/src/cursor.c
+index baacf5f..287f779 100644
+--- a/src/cursor.c
++++ b/src/cursor.c
+@@ -40,6 +40,7 @@ static void handle_pointer_motion_absolute (struct wl_listener *listener, void *
+ static void handle_pointer_button (struct wl_listener *listener, void *data);
+ static void handle_pointer_axis (struct wl_listener *listener, void *data);
+ static void handle_pointer_frame (struct wl_listener *listener, void *data);
++static void handle_touch_frame (struct wl_listener *listener, void *data);
+
+ static void
+ phoc_cursor_set_property (GObject *object,
+@@ -322,6 +323,10 @@ phoc_cursor_constructed (GObject *object)
+ wl_signal_add (&wlr_cursor->events.frame, &self->frame);
+ self->frame.notify = handle_pointer_frame;
+
++ wl_signal_add (&wlr_cursor->events.touch_frame,
++ &self->touch_frame);
++ self->touch_frame.notify = handle_touch_frame;
++
+ G_OBJECT_CLASS (phoc_cursor_parent_class)->constructed (object);
+ }
+
+@@ -345,6 +350,7 @@ phoc_cursor_finalize (GObject *object)
+ wl_list_remove (&self->touch_down.link);
+ wl_list_remove (&self->touch_up.link);
+ wl_list_remove (&self->touch_motion.link);
++ wl_list_remove (&self->touch_frame.link);
+ wl_list_remove (&self->tool_axis.link);
+ wl_list_remove (&self->tool_tip.link);
+ wl_list_remove (&self->tool_proximity.link);
+@@ -853,6 +859,17 @@ phoc_cursor_handle_touch_motion (PhocCursor *self,
+ }
+ }
+
++
++static void
++handle_touch_frame (struct wl_listener *listener, void *data)
++{
++ PhocCursor *self = PHOC_CURSOR (wl_container_of (listener, self, touch_frame));
++ struct wlr_seat *wlr_seat = self->seat->seat;
++
++ wlr_seat_touch_notify_frame(wlr_seat);
++}
++
++
+ void
+ phoc_cursor_handle_tool_axis (PhocCursor *self,
+ struct wlr_event_tablet_tool_axis *event)
+diff --git a/src/cursor.h b/src/cursor.h
+index 9387f41..6f1aa82 100644
+--- a/src/cursor.h
++++ b/src/cursor.h
+@@ -71,6 +71,7 @@ typedef struct _PhocCursor {
+ struct wl_listener touch_down;
+ struct wl_listener touch_up;
+ struct wl_listener touch_motion;
++ struct wl_listener touch_frame;
+
+ struct wl_listener tool_axis;
+ struct wl_listener tool_tip;
View it on GitLab: https://salsa.debian.org/DebianOnMobile-team/phoc/-/compare/d36562ea1944b3d9457528fc33be2b9c1dd78c33...c3df0e4e5de6ee496756069fc493418c96a68eb6
--
View it on GitLab: https://salsa.debian.org/DebianOnMobile-team/phoc/-/compare/d36562ea1944b3d9457528fc33be2b9c1dd78c33...c3df0e4e5de6ee496756069fc493418c96a68eb6
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-on-mobile-maintainers/attachments/20220404/90793e07/attachment-0001.htm>
More information about the Debian-on-mobile-maintainers
mailing list