diff options
author | Jens Verwiebe <info@jensverwiebe.de> | 2018-11-24 20:23:57 +0300 |
---|---|---|
committer | Jens Verwiebe <info@jensverwiebe.de> | 2018-11-24 20:26:20 +0300 |
commit | e5bc9fae54d2906cdc49278ec148343869fede0c (patch) | |
tree | 7096838b48cf1020484695b440646075786ba2b8 | |
parent | 874f12480f465374e53ee1870cf108828172fe17 (diff) |
Fix penpressure for tablets that use libinput on linux
-rw-r--r-- | intern/ghost/intern/GHOST_SystemX11.cpp | 4 |
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; |