[ace-of-penguins] 117/141: debian/patches/34-ts-workaround.patch: new
Markus Koschany
apo-guest at moszumanska.debian.org
Wed Jan 6 13:55:06 UTC 2016
This is an automated email from the git hooks/post-receive script.
apo-guest pushed a commit to branch master
in repository ace-of-penguins.
commit 16870b1a2b4c5846664675659cfd3bfe006a551c
Author: Jari Aalto <jari.aalto at cante.net>
Date: Mon Mar 17 10:43:58 2014 +0200
debian/patches/34-ts-workaround.patch: new
---
debian/patches/34-ts-workaround.patch | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
diff --git a/debian/patches/34-ts-workaround.patch b/debian/patches/34-ts-workaround.patch
new file mode 100644
index 0000000..4899054
--- /dev/null
+++ b/debian/patches/34-ts-workaround.patch
@@ -0,0 +1,21 @@
+Description: Workaround for touchscreen issue
+ Since ButtonMotionMask is used, MotionNotify events should only be sent
+ while a button is held down. However, for touchscreen devices,
+ a MotionNotify event might be sent immediately before a ButtonPress event.
+ (Possibly a bug in the X server.) This patch ignores MotionNotify events
+ if no buttons are being held down.
+Author: Ove Kaaven <ovek at arcticnet.no>
+
+Index: ace-of-penguins-1.3/lib/xwin.c
+===================================================================
+--- ace-of-penguins-1.3.orig/lib/xwin.c 2014-03-15 20:12:18.000000000 +0100
++++ ace-of-penguins-1.3/lib/xwin.c 2014-03-15 20:20:56.526440106 +0100
+@@ -425,6 +425,8 @@
+
+ case MotionNotify:
+
++ if (!(event.xmotion.state & ButtonMask))
++ break;
+ while (XCheckMaskEvent(display, ButtonMotionMask, &event));
+ if (!XQueryPointer(display, event.xmotion.window,
+ &root, &child, &root_x, &root_y,
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/ace-of-penguins.git
More information about the Pkg-games-commits
mailing list