[PATCH 2/4] os: support %% in pnprintf

2013-04-15 Thread Peter Hutterer
Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- os/log.c | 3 +++ test/signal-logging.c | 5 + 2 files changed, 8 insertions(+) diff --git a/os/log.c b/os/log.c index c582aaa..4f30782 100644 --- a/os/log.c +++ b/os/log.c @@ -450,6 +450,9 @@ pnprintf(char *string,

[PATCH 1/4] os: support pnprintf length modifiers for integers

2013-04-15 Thread Peter Hutterer
Mainly for %ld, smaller than int is propagated anyway, and %lld isn't really used. Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- os/log.c | 90 --- test/signal-logging.c | 78 ++-- 2

[PATCH 4/4] os: complain about unsupported pnprintf directives

2013-04-15 Thread Peter Hutterer
Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- os/log.c | 1 + test/signal-logging.c | 7 +++ 2 files changed, 8 insertions(+) diff --git a/os/log.c b/os/log.c index 074c69c..aa69a35 100644 --- a/os/log.c +++ b/os/log.c @@ -461,6 +461,7 @@ pnprintf(char *string,

[PATCH 3/4] os: support %c in pnprintf

2013-04-15 Thread Peter Hutterer
Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- os/log.c | 7 +++ test/signal-logging.c | 5 + 2 files changed, 12 insertions(+) diff --git a/os/log.c b/os/log.c index 4f30782..074c69c 100644 --- a/os/log.c +++ b/os/log.c @@ -450,6 +450,13 @@ pnprintf(char

[PATCH evdev] Add option TypeName (#62831)

2013-04-15 Thread Peter Hutterer
evdev tries to assign the right XI 1.x type-name based on various device capabilities. In some cases, that fails. e.g. the Mionix Naos 5000 mouse looks like a keyboard. And we assign a keyboard type in that case since there are plenty of keyboards that also advertise some axes or others. Add a

Re: [PATCH 1/2] test/xi2: Add a test for XIGrabDevice

2013-04-15 Thread Rui Tiago Cação Matos
On 15 April 2013 02:20, Peter Hutterer peter.hutte...@who-t.net wrote: On Sat, Apr 13, 2013 at 04:22:53AM +0200, Rui Matos wrote: Currently fails but will get fixed in the next commit. did this test really succeed? because it fails here and it looks like it cannot actually work.

Re: gsoc 2013 idea - Customizable gestures

2013-04-15 Thread Michal Suchanek
On 14 April 2013 12:30, Peter Hutterer peter.hutte...@who-t.net wrote: On 13/04/13 01:34 , Michal Suchanek wrote: On 12 April 2013 13:50, Alexander E. Patrakov patra...@gmail.com wrote: 2013/4/12 Peter Hutterer peter.hutte...@who-t.net: Hi guys, Unfortunately, the entry for gesture

Re: [PATCH:libXxf86vm 1/4] Improve error handling in XF86VidModeGetMonitor()

2013-04-15 Thread walter harms
Am 14.04.2013 17:16, schrieb Alan Coopersmith: On 04/14/13 04:28 AM, walter harms wrote: if (rep.vendorLength) { - if (!(monitor-vendor = (char *)Xcalloc(rep.vendorLength + 1, 1))) { - _XEatData(dpy, (rep.nhsync + rep.nvsync) * 4 + -

dix: copy event in TouchConvertToPointerEvent correctly

2013-04-15 Thread Maarten Lankhorst
Fixes reading random memory read beyond the end of original event. sizeof device_event: 424 sizeof internal_event: 2800 Signed-off-by: Maarten Lankhorst maarten.lankho...@canonical.com --- diff --git a/dix/touch.c b/dix/touch.c index a191f14..1f7247b 100644 --- a/dix/touch.c +++ b/dix/touch.c @@

Re: dix: copy event in TouchConvertToPointerEvent correctly

2013-04-15 Thread Peter Hutterer
On Mon, Apr 15, 2013 at 04:53:48PM +0200, Maarten Lankhorst wrote: Fixes reading random memory read beyond the end of original event. sizeof device_event: 424 sizeof internal_event: 2800 Signed-off-by: Maarten Lankhorst maarten.lankho...@canonical.com --- applied, thanks Cheers,

Re: [PATCH 1/2] test/xi2: Add a test for XIGrabDevice

2013-04-15 Thread Peter Hutterer
On Mon, Apr 15, 2013 at 10:45:26AM +0200, Rui Tiago Cação Matos wrote: On 15 April 2013 02:20, Peter Hutterer peter.hutte...@who-t.net wrote: On Sat, Apr 13, 2013 at 04:22:53AM +0200, Rui Matos wrote: Currently fails but will get fixed in the next commit. did this test really succeed?

[PATCH] dix: pre-scale x by the screen:device:resolution ratio

2013-04-15 Thread Peter Hutterer
commit 61a99aff9d33728a0b67920254d2d4d79f80cf39 dix: pre-scale relative events from abs devices to desktop ratio (#31636) added pre-scaling of relative coordinates coming from absolute devices to undo uneven scaling based on the screen dimensions. Devices have their own device width/height