! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
mouse settings show "Virtual core XTEST pointer"
Status:
RESOLVED: FIXED
Product:
Xfce4-settings
Component:
Mouse Settings

Comments

Description Martin Pitt 2010-10-14 12:19:49 CEST
xfce4-mouse-settings shows not only my actual pointer devices, but also the "Virtual core XTEST pointer", and what's worse, as the first entry. Changes to this don't have any apparent effect, so this is just confusing.

This should be filtered out, I'll have a look at this now.

(This is both with 4.6.4 and git head)
Comment 1 Martin Pitt 2010-10-14 12:28:19 CEST
Ah, http://www.x.org/docs/Xext/xtest.pdf describes what these XTEST pointer/keyboard devices are for (noninteractive automatic testing), so IMHO these shouldn't be touched by GUI config programs at all.
Comment 2 Martin Pitt 2010-10-14 12:35:22 CEST
Unfortunately neither http://www.xfree86.org/current/XFreeDeviceList.3.html nor X11/extensions/XI.h specify a special type to identify XTEST devices, so I'm afraid whe have to do string based matching against the name.
Comment 3 Martin Pitt 2010-10-14 12:37:02 CEST
Created attachment 3142 
Ignore virtual XTEST mouse
Comment 4 Jérôme Guelfucci editbugs 2010-10-14 13:43:11 CEST
I'm ok with string matching if there is nothing else.

Nick, you wrote the mouse code, can you confirm we can't do this in a cleaner way?
Comment 5 Nick Schermer editbugs 2010-10-14 14:17:32 CEST
We could use g_str_has_prefix too since that has null checks, but apart from that fine with me. Also drop the tab indent when committing the patch.
Comment 6 Martin Pitt 2010-10-14 14:30:27 CEST
Created attachment 3143 
Ignore virtual XTEST mouse

Yup, that makes sense. Fixed patch attached, still works fine.
Comment 7 Jérôme Guelfucci editbugs 2010-10-14 14:42:58 CEST
Pushed to git master, thanks a lot for your contribution.

Bug #6735

Reported by:
Martin Pitt
Reported on: 2010-10-14
Last modified on: 2010-10-14

People

Assignee:
Nick Schermer
CC List:
2 users

Version

Attachments

Ignore virtual XTEST mouse (1.16 KB, patch)
2010-10-14 12:37 CEST , Martin Pitt
no flags
Ignore virtual XTEST mouse (1.18 KB, patch)
2010-10-14 14:30 CEST , Martin Pitt
no flags

Additional information