aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core-utils/lumina-config/pages
diff options
context:
space:
mode:
authorKen Moore <ken@ixsystems.com>2016-12-07 11:12:30 -0500
committerKen Moore <ken@ixsystems.com>2016-12-07 11:12:30 -0500
commit0808bfd0808415b0ea186254ae120029c584939b (patch)
tree195ee1ac2156e65712d4bac3bb0a5d9bbeef09f3 /src-qt5/core-utils/lumina-config/pages
parentEnable the new input-devices page within lumina-config. (diff)
downloadlumina-0808bfd0808415b0ea186254ae120029c584939b.tar.gz
lumina-0808bfd0808415b0ea186254ae120029c584939b.tar.bz2
lumina-0808bfd0808415b0ea186254ae120029c584939b.zip
Add some more filtering for mouse devices:
Hide all the trivial/unchangeable pointer devices, and list all the other mouse devices (even extension devices) as distinct mice.
Diffstat (limited to 'src-qt5/core-utils/lumina-config/pages')
-rw-r--r--src-qt5/core-utils/lumina-config/pages/page_mouse.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src-qt5/core-utils/lumina-config/pages/page_mouse.cpp b/src-qt5/core-utils/lumina-config/pages/page_mouse.cpp
index 36ce81dc..8f5c0c23 100644
--- a/src-qt5/core-utils/lumina-config/pages/page_mouse.cpp
+++ b/src-qt5/core-utils/lumina-config/pages/page_mouse.cpp
@@ -70,7 +70,8 @@ void page_mouse::generateUI(){
qDebug() << "Devices Found:" << devices.length();
for(int i=0; i<devices.length(); i++){
QTreeWidget *tree = 0;
- if(!devices[i]->isExtension()){
+ if(!devices[i]->isExtension() || devices[i]->isPointer()){
+ if(devices[i]->isPointer() && devices[i]->listProperties().count() <4){ continue; } //filter out all the trivial/static mouse devices
//Make a new tab for this device
tree = new QTreeWidget(this);
tree->setHeaderHidden(true);
bgstack15