[PATCH] Improve detection of input device source type

2009-09-27 Thread Thomas Jaeger
Subject: [PATCH] Improve detection of input device source type This detection code is not 100% reliable, but it should fare much better than the current code, which just compares the device name to a fixed set of strings. Many applications depend on erasers being recognized reliably, so we start by

Re: [PATCH] Improve detection of input device source type

2009-09-28 Thread Alexander Larsson
On Mon, 2009-09-28 at 02:00 -0400, Thomas Jaeger wrote: > This is necessary since wacom devices don't have predictable names > anymore. Please let me know if I need to open a bug report for this issue. Looks sane to me. Pushed. ___ gtk-devel-list mail

Re: [PATCH] Improve detection of input device source type

2009-09-28 Thread Sven Neumann
Hi, On Mon, 2009-09-28 at 02:00 -0400, Thomas Jaeger wrote: > - if (!strcmp (tmp_name, "pointer")) > -gdkdev->info.source = GDK_SOURCE_MOUSE; > - else if (!strcmp (tmp_name, "wacom") || > - !strcmp (tmp_name, "pen")) > -gdkdev->info.source = GDK_SOURCE_PEN; > - else if (!strcmp

Re: [PATCH] Improve detection of input device source type

2009-09-28 Thread Thomas Jaeger
Sven Neumann wrote: > Hi, > > On Mon, 2009-09-28 at 02:00 -0400, Thomas Jaeger wrote: >> - if (!strcmp (tmp_name, "pointer")) >> -gdkdev->info.source = GDK_SOURCE_MOUSE; >> - else if (!strcmp (tmp_name, "wacom") || >> - !strcmp (tmp_name, "pen")) >> -gdkdev->info.source = GDK_SO