diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2019-07-19 22:05:27 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2019-07-19 22:05:27 +0100 |
commit | 121ed4eec41fbf03e1998d09eede1bf449da63b9 (patch) | |
tree | ce9341d77d1507f67d4a3a1472da9011b5baa0a8 /kde-misc/wacomtablet | |
parent | dd762ff83c330186ee2ede002e08b2f780cddd51 (diff) |
gentoo resync : 19.07.2019
Diffstat (limited to 'kde-misc/wacomtablet')
-rw-r--r-- | kde-misc/wacomtablet/Manifest | 3 | ||||
-rw-r--r-- | kde-misc/wacomtablet/files/wacomtablet-3.1.1-correct-width-height-values.patch | 52 | ||||
-rw-r--r-- | kde-misc/wacomtablet/wacomtablet-3.1.1-r1.ebuild (renamed from kde-misc/wacomtablet/wacomtablet-3.1.1.ebuild) | 17 |
3 files changed, 62 insertions, 10 deletions
diff --git a/kde-misc/wacomtablet/Manifest b/kde-misc/wacomtablet/Manifest index 529b9f4c1eea..82e777c4713f 100644 --- a/kde-misc/wacomtablet/Manifest +++ b/kde-misc/wacomtablet/Manifest @@ -1,5 +1,6 @@ +AUX wacomtablet-3.1.1-correct-width-height-values.patch 2189 BLAKE2B 27f363d4e02c9ff0244a1ff9fabdc6370d572dcb37d87b8db00b3a47ac12e45523aaf8c9edc2281a228db88a6aadb617eb6c8db39f47cb849d87e87284a208c3 SHA512 0bf21e7a5714f2805d8b273992091b926413bcbbb549d43c1caa066589700dd70da28c9e282b2158487d1528eb8370e3e5f715c4b662b9929ed4a2a720b5d085 AUX wacomtablet-3.1.1-gcc9.patch 1196 BLAKE2B 2e8b7d2f3808b09caa1ed733a6d0876172324809ecc0567a8fffbf962bdcd03fee8399fdc5fbb1b5196530538c04513965ec2df0540c58eb8fd5ecd577ad6409 SHA512 600725f86e5b4eaa654731c14c4c7c4d4d5c8980634faadd5697a866667ca27356213d25c07918fee70ee056cd7d890d612e80c6bd7c0f4e4058be39dddba263 AUX wacomtablet-3.1.1-xlib-optional.patch 838 BLAKE2B 997d42737c593c5074b6541ca91a1976afc36c7f43041ecd90a32d309c856a9b9b7fb203b135cf997a9a944e9a47febefdc196b36fde94975677ba16b2f17be4 SHA512 b7b8e3c1a2ad97788d6a1bbebc3183b4b1e13ab6295bfc716d5e083a0a317fcd6ba75b49051706c9d776a028a40d3f7cc8edec9b1186b67cdd727ef3e2019990 DIST wacomtablet-3.1.1.tar.xz 724176 BLAKE2B 062f05067b9ca423527f1fbbc498d3228fba9333f96e918493a00c3ceb669a23c3ab9297bf6c2d3d161559f1d9cf6ccff8f502971718e71a360f3db2e7d9bd67 SHA512 91f8ab9326b8307d63e09c7d75d613553f16c6cb93837cc404cb251aeda93078011b0c5aa0fc20ca4613d82421d73804cc55fa71a688bf4dd0f1d616733ade97 -EBUILD wacomtablet-3.1.1.ebuild 1369 BLAKE2B 7e255af0154d8bac2d38b6607b00527f009ca126373b9d8a69c6153cc4e52f73b53d472efd47347ae5d10c97dadc6db556b7da0753fb6f7bfc3be628168fc95a SHA512 0b9d7e39aa3f827e457cec0eb2e8f4634e5490579c844dbc924e1246ae6d6efc44aa8950f33347917a9c80a68b6609140ca817330c25d6e3779075067940c083 +EBUILD wacomtablet-3.1.1-r1.ebuild 1421 BLAKE2B 8dbf7b906bf70518862ad2fa080765fc3d0d79e1b66eb623d92b802238083606212f3db3d786ef0ca9509c7d4d24c749d8f812ef3e9360f546b15ae0868e9c70 SHA512 a90b92226ade230fb3ca28475bd3ecf2d3dcc132454161f310a4aa2aea7e41f8fd6ddbc70ed3066d17c12ef821f425b37c9e487597d349ee200809bf0915d7f2 MISC metadata.xml 249 BLAKE2B ad415db89e5dee1627aa77f44ded9d4e1e5b8217d06c7ca25bbaa3fe92ce67c2b1090957c45a821b407d7927e5af798498aa6a5b903895ee1af8ee20a446c7f7 SHA512 76a5a340b13f0053ca3c5e94ed24380ea8d29b45ac8655419e22eaadb1e4a827c04d2e7e36b65145c4964e6526f656618fc6ac144e277ef53cb7373e6239e3c3 diff --git a/kde-misc/wacomtablet/files/wacomtablet-3.1.1-correct-width-height-values.patch b/kde-misc/wacomtablet/files/wacomtablet-3.1.1-correct-width-height-values.patch new file mode 100644 index 000000000000..805539728870 --- /dev/null +++ b/kde-misc/wacomtablet/files/wacomtablet-3.1.1-correct-width-height-values.patch @@ -0,0 +1,52 @@ +From fd099f89c5ded7e20c3a852d5539e9a0b269e11d Mon Sep 17 00:00:00 2001 +From: Jason Gerecke <jason.gerecke@wacom.com> +Date: Thu, 13 Jun 2019 23:49:12 +0300 +Subject: Correct width/height values from X11Wacom::getMaximumTabletArea + +Summary: +The "Wacom Tablet Area" property contains four values that define the +top-left and bottom-right tablet coordinates of the tablet's input +area. The driver will scale input coordinates according to the input +area such that the border of the input area matches up with the border +of the desktop or mapped monitor. + +Crucially, these coordinates are *NOT* necessarily equal to (0,0) and +(SENSOR_MAX_X, SENSOR_MAX_Y) after a reset. In particular, many display +tablet have sensors that are slightly larger than the display itself +and so have their reset areas equal to something like (400, 400) and +(SENSOR_MAX_X - 400, SENSOR_MAX_Y - 400) so that the pen is correctly +mapped. + +This commit updates X11Wacom::getMaximumTabletArea to properly set the +width and height properties by calculating the difference between the +min and max values of X and Y. This is particularly important to ensure +that the calibration routines work correctly. + +Ref: https://bugs.kde.org/show_bug.cgi?id=407712 + +Reviewers: valeriymalov + +Reviewed By: valeriymalov + +Differential Revision: https://phabricator.kde.org/D21775 +--- + src/common/x11wacom.cpp | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/src/common/x11wacom.cpp b/src/common/x11wacom.cpp +index e269480..a4d95c8 100644 +--- a/src/common/x11wacom.cpp ++++ b/src/common/x11wacom.cpp +@@ -70,8 +70,8 @@ const TabletArea X11Wacom::getMaximumTabletArea(const QString& deviceName) + if (x11Device.getLongProperty(areaProperty, maximumArea, 4) && maximumArea.size() == 4) { + maximumAreaRect.setX(maximumArea.at(0)); + maximumAreaRect.setY(maximumArea.at(1)); +- maximumAreaRect.setWidth(maximumArea.at(2)); +- maximumAreaRect.setHeight(maximumArea.at(3)); ++ maximumAreaRect.setWidth(maximumArea.at(2) - maximumArea.at(0)); ++ maximumAreaRect.setHeight(maximumArea.at(3) - maximumArea.at(1)); + } + + // reset the area back to the previous value +-- +cgit v1.1 diff --git a/kde-misc/wacomtablet/wacomtablet-3.1.1.ebuild b/kde-misc/wacomtablet/wacomtablet-3.1.1-r1.ebuild index 382e2fbe52a7..87b034ac93ac 100644 --- a/kde-misc/wacomtablet/wacomtablet-3.1.1.ebuild +++ b/kde-misc/wacomtablet/wacomtablet-3.1.1-r1.ebuild @@ -1,21 +1,22 @@ # Copyright 1999-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=6 +EAPI=7 KDE_HANDBOOK="forceoptional" VIRTUALX_REQUIRED="test" inherit kde5 -DESCRIPTION="KControl module for Wacom tablets" -HOMEPAGE="https://www.linux-apps.com/content/show.php?action=content&content=114856" +DESCRIPTION="System settings module for Wacom tablets" +HOMEPAGE="https://userbase.kde.org/Wacomtablet https://store.kde.org/p/1127862" SRC_URI="mirror://kde/stable/${PN}/${PV}/${P}.tar.xz" LICENSE="GPL-2" KEYWORDS="amd64 x86" IUSE="" -CDEPEND=" +BDEPEND="sys-devel/gettext" +RDEPEND=" $(add_frameworks_dep kconfig) $(add_frameworks_dep kconfigwidgets) $(add_frameworks_dep kcoreaddons) @@ -37,17 +38,15 @@ CDEPEND=" x11-libs/libXi x11-libs/libxcb " -DEPEND="${CDEPEND} - sys-devel/gettext +DEPEND="${RDEPEND} x11-base/xorg-proto -" -RDEPEND="${CDEPEND} - !kde-misc/wacomtablet:4 + x11-libs/libX11 " PATCHES=( "${FILESDIR}/${P}-xlib-optional.patch" # bug 681674 "${FILESDIR}/${P}-gcc9.patch" # bug 686822 + "${FILESDIR}/${P}-correct-width-height-values.patch" # KDE-Bug 407712 ) src_test() { |