Signed-off-by: Jason Gerecke <killert...@gmail.com> --- tools/xsetwacom.c | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-)
diff --git a/tools/xsetwacom.c b/tools/xsetwacom.c index 402cc09..6b4189f 100644 --- a/tools/xsetwacom.c +++ b/tools/xsetwacom.c @@ -2570,7 +2570,27 @@ static void get_all(Display *dpy, XDevice *dev, param_t *param, int argc, char * { p->device_name = param->device_name; p->printformat = param->printformat; - get_param(dpy, dev, p, argc, argv); + + if (p->prop_name == WACOM_PROP_BUTTON_ACTIONS) + { + int i; + int nmap = 256; + unsigned char map[nmap]; + + nmap = XGetDeviceButtonMapping(dpy, dev, map, nmap); + for (i = 1; i <= nmap; i++) + { + char tmparg[16]; + char *tmpargv = &tmparg[0]; + + if (i > 3 && i < 8) + continue; + sprintf(tmparg, "%d", i); + get_param(dpy, dev, p, 1, &tmpargv); + } + } + else + get_param(dpy, dev, p, argc, argv); } p++; } -- 2.2.1 ------------------------------------------------------------------------------ Dive into the World of Parallel Programming. The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ Linuxwacom-devel mailing list Linuxwacom-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel