Merge ~3v1n0/ubuntu/+source/gnome-shell:ubuntu/master into ~ubuntu-desktop/ubuntu/+source/gnome-shell:ubuntu/master

Proposed by Marco Trevisan (Treviño)
Status: Merged
Merged at revision: 6c34d00299b3742b872a761e9b47bb664c4c7179
Proposed branch: ~3v1n0/ubuntu/+source/gnome-shell:ubuntu/master
Merge into: ~ubuntu-desktop/ubuntu/+source/gnome-shell:ubuntu/master
Diff against target: 81 lines (+48/-0)
3 files modified
debian/changelog (+5/-0)
debian/patches/series (+1/-0)
debian/patches/st-button-Ignore-pointer-emulated-touch-events.patch (+42/-0)
Reviewer Review Type Date Requested Status
Didier Roche-Tolomelli Approve
Review via email: mp+357992@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Didier Roche-Tolomelli (didrocks) wrote :

Makes sense, thanks!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
diff --git a/debian/changelog b/debian/changelog
index ecf0df1..1bcb1a6 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,5 +1,6 @@
1gnome-shell (3.30.1-2ubuntu2) UNRELEASED; urgency=medium1gnome-shell (3.30.1-2ubuntu2) UNRELEASED; urgency=medium
22
3 [ Didier Roche ]
3 * debian/patches/ubuntu/background_login.patch:4 * debian/patches/ubuntu/background_login.patch:
4 - match Yaru theme in the ubuntu session instead of our previous GDM5 - match Yaru theme in the ubuntu session instead of our previous GDM
5 background (LP: #1789356)6 background (LP: #1789356)
@@ -7,6 +8,10 @@ gnome-shell (3.30.1-2ubuntu2) UNRELEASED; urgency=medium
7 - ensure we resolve finale theme file path to correctly load assets8 - ensure we resolve finale theme file path to correctly load assets
8 under gdm (LP: #1798747)9 under gdm (LP: #1798747)
910
11 [ Marco Trevisan (Treviño) ]
12 * debian/patches/st-button-Ignore-pointer-emulated-touch-events.patch:
13 - Don't emit two click events on touch under X11 (LP: #1745888)
14
10 -- Didier Roche <didrocks@ubuntu.com> Wed, 17 Oct 2018 14:58:42 +020015 -- Didier Roche <didrocks@ubuntu.com> Wed, 17 Oct 2018 14:58:42 +0200
1116
12gnome-shell (3.30.1-2ubuntu1) cosmic; urgency=medium17gnome-shell (3.30.1-2ubuntu1) cosmic; urgency=medium
diff --git a/debian/patches/series b/debian/patches/series
index 2d27e92..8a58fee 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -18,5 +18,6 @@ main-add-backtrace-crashes-all-and-backtrace-all.patch
18sessionMode-add-support-for-debugFlags-parameter.patch18sessionMode-add-support-for-debugFlags-parameter.patch
19st-scroll-view-Handle-the-case-where-scrollbars-are-NULL.patch19st-scroll-view-Handle-the-case-where-scrollbars-are-NULL.patch
20st-scroll-view-Remove-scrollbars-references-on-dispose.patch20st-scroll-view-Remove-scrollbars-references-on-dispose.patch
21st-button-Ignore-pointer-emulated-touch-events.patch
21ubuntu/search-call-XUbuntuCancel-method-on-providers-when-no-dat.patch22ubuntu/search-call-XUbuntuCancel-method-on-providers-when-no-dat.patch
22ubuntu/resolve_alternate_theme_path.patch23ubuntu/resolve_alternate_theme_path.patch
diff --git a/debian/patches/st-button-Ignore-pointer-emulated-touch-events.patch b/debian/patches/st-button-Ignore-pointer-emulated-touch-events.patch
23new file mode 10064424new file mode 100644
index 0000000..538bb17
--- /dev/null
+++ b/debian/patches/st-button-Ignore-pointer-emulated-touch-events.patch
@@ -0,0 +1,42 @@
1From: =?utf-8?b?Ik1hcmNvIFRyZXZpc2FuIChUcmV2acOxbyki?= <mail@3v1n0.net>
2Date: Thu, 25 Oct 2018 06:35:25 +0200
3Subject: st-button: Ignore pointer emulated touch events
4
5In X11, pointer emulated touch events are replicated with normal PRESS, RELEASE
6pair events which are generated by the server. Thus for a single tap we get:
7 - TOUCH_BEGIN -> TOUCH_END, PRESS -> RELEASE
8
9This will cause st-button to send two "clicked" signals, instead of just one,
10breaking extensions (like dash-to-dock) that show buttons in the main stage
11which will be checked two times or that will receive the same signal two times.
12
13Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/1745888
14Forwarded: yes, https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/272
15---
16 src/st/st-button.c | 7 +++++--
17 1 file changed, 5 insertions(+), 2 deletions(-)
18
19diff --git a/src/st/st-button.c b/src/st/st-button.c
20index 8f5c492..a3a7b24 100644
21--- a/src/st/st-button.c
22+++ b/src/st/st-button.c
23@@ -248,14 +248,17 @@ st_button_touch_event (ClutterActor *actor,
24 if (event->type == CLUTTER_TOUCH_BEGIN && !priv->press_sequence)
25 {
26 clutter_input_device_sequence_grab (device, sequence, actor);
27- st_button_press (button, device, 0, sequence);
28+ if (!clutter_event_is_pointer_emulated ((ClutterEvent*) event))
29+ st_button_press (button, device, 0, sequence);
30 return CLUTTER_EVENT_STOP;
31 }
32 else if (event->type == CLUTTER_TOUCH_END &&
33 priv->device == device &&
34 priv->press_sequence == sequence)
35 {
36- st_button_release (button, device, mask, 0, sequence);
37+ if (!clutter_event_is_pointer_emulated ((ClutterEvent*) event))
38+ st_button_release (button, device, mask, 0, sequence);
39+
40 clutter_input_device_sequence_ungrab (device, sequence);
41 return CLUTTER_EVENT_STOP;
42 }

Subscribers

People subscribed via source and target branches