Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Verwiebe <info@jensverwiebe.de>2018-11-24 20:23:57 +0300
committerJens Verwiebe <info@jensverwiebe.de>2018-11-24 20:26:20 +0300
commite5bc9fae54d2906cdc49278ec148343869fede0c (patch)
tree7096838b48cf1020484695b440646075786ba2b8 /intern/ghost
parent874f12480f465374e53ee1870cf108828172fe17 (diff)
Fix penpressure for tablets that use libinput on linux
Diffstat (limited to 'intern/ghost')
-rw-r--r--intern/ghost/intern/GHOST_SystemX11.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/intern/ghost/intern/GHOST_SystemX11.cpp b/intern/ghost/intern/GHOST_SystemX11.cpp
index c8984f0e280..06754bc9300 100644
--- a/intern/ghost/intern/GHOST_SystemX11.cpp
+++ b/intern/ghost/intern/GHOST_SystemX11.cpp
@@ -2231,6 +2231,7 @@ static BOOL is_stylus(const char *name, const char *type)
"stylus",
"wizardpen",
"acecad",
+ "pen",
NULL
};
@@ -2286,7 +2287,8 @@ void GHOST_SystemX11::refreshXInputDevices()
if ((m_xtablet.StylusDevice == NULL) &&
- (is_stylus(device_info[i].name, device_type) || (device_info[i].type == m_atom.TABLET)))
+ (is_stylus(device_info[i].name, device_type) && (device_info[i].type != m_atom.TABLET)))
+ /* for libinput to work reliable, only lookup ValuatorClass in Tablet type:'STYLUS' */
{
// printf("\tfound stylus\n");
m_xtablet.StylusID = device_info[i].id;