[PULL] swapping fixes, memleak plumbing and valuator handling

2011-04-03 Thread Peter Hutterer
The following changes since commit f9834d312e3059073e8ad77d9f9d57cb9d96e1e5: fb: cleanup fbChangeWindowAttributes (2011-04-01 11:02:17 +1000) are available in the git repository at: git://people.freedesktop.org/~whot/xserver.git for-keith Chase Douglas (3): Clean up getValuatorEvents u

Re: [PULL] Xi fixes for swapping case

2011-04-03 Thread Peter Hutterer
On Sat, Apr 02, 2011 at 02:51:32PM +0200, Matthieu Herrb wrote: > The following changes since commit f9834d312e3059073e8ad77d9f9d57cb9d96e1e5: > > fb: cleanup fbChangeWindowAttributes (2011-04-01 11:02:17 +1000) > > are available in the git repository at: > git://people.freedesktop.org/~herrb

Re: [PATCH] Don't report old relative values in getValuatorEvents

2011-04-03 Thread Peter Hutterer
On Thu, Mar 31, 2011 at 11:29:01AM -0400, Chase Douglas wrote: > Relative valuator values should not be reported in any future events. If > a relative valuator value is not set in an internal event, set the value > to 0 for XI 1.x valuator events sent over the wire. > > Signed-off-by: Chase Dougla

Re: [PATCH xf86-input-synaptics resend] Revert "Default to 2-finger emulation when HW supports it"

2011-04-03 Thread Peter Hutterer
On Fri, Apr 01, 2011 at 03:32:01PM -0500, Chris Bagwell wrote: > On Fri, Apr 1, 2011 at 2:21 PM, Chase Douglas > wrote: > > This changes the default behavior for trackpads that have only pressure > > information to emulate two finger actions. It's been reported that the > > default value is too lo

Re: [PATCH synaptics 13/17] Don't autoprobe for devices when Option Device is set.

2011-04-03 Thread Peter Hutterer
On Sat, Apr 02, 2011 at 08:44:10PM -0500, Chris Bagwell wrote: > On Sun, Mar 20, 2011 at 9:08 PM, Peter Hutterer > wrote: > > If only Option Device is set but no protocol, the code calls into > > AutoDevProbe. eventcomm (the only backend with an AutoDevProbe) then runs > > through all /dev/input/e

[PATCH] xf86-video-mga: remove redundant NULL checks for free()

2011-04-03 Thread Nicolas Kaiser
free() can handle NULL. Signed-off-by: Nicolas Kaiser --- * Cyril Brulebois : > Nicolas Kaiser (02/04/2011): > > - if (pptNew2) xfree(pptNew2); > > - if (pboxNew2) xfree(pboxNew2); > > + if (pptNew2) free(pptNew2); > > + if (pboxNew2) free(pboxNew2); >

Re: [PATCHv3 01/14] dix: remove unused debug code

2011-04-03 Thread Peter Hutterer
On Tue, Mar 29, 2011 at 06:08:07PM +0300, Tiago Vignatti wrote: > Signed-off-by: Tiago Vignatti > Reviewed-by: Mikhail Gusarov > --- > dix/dixfonts.c | 12 > 1 files changed, 0 insertions(+), 12 deletions(-) > > diff --git a/dix/dixfonts.c b/dix/dixfonts.c > index d8f1529..316a8a

Re: [PATCHv3 09/14] Xi: fix memory leak in ProcXGetSelectedExtensionEvents

2011-04-03 Thread Peter Hutterer
On Tue, Mar 29, 2011 at 06:08:15PM +0300, Tiago Vignatti wrote: > Signed-off-by: Tiago Vignatti > --- > Xi/getselev.c |2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/Xi/getselev.c b/Xi/getselev.c > index 09a53f4..7304738 100644 > --- a/Xi/getselev.c > +++ b/Xi/gets

Re: [PATCHv2 1/2] xfree86: loader: fix memory leaks in LoaderListDirs

2011-04-03 Thread Peter Hutterer
On Thu, Mar 31, 2011 at 04:26:06PM +0300, Tiago Vignatti wrote: > Signed-off-by: Tiago Vignatti > Reviewed-by: Peter Hutterer > Reviewed-by: Nicolas Peninguy > --- > This one is with FreePathList addition that Nicolas suggested. Also, based on > Peter's review I generated the next patch, groupin

Re: [PATCH] xkbcomp: Stop possible overflow in yyGetnumber. #31647 (try 2)

2011-04-03 Thread Peter Hutterer
On Sun, Apr 03, 2011 at 08:19:13PM +1000, Alistair Leslie-Hughes wrote: > Changed to use a const int, as a suggestion from Dan. > > Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=31647 > > Signed-off-by: Alistair Leslie-Hughes pushed, thank you. Cheers, Peter > >From 8c1bdf5efad50477666

Re: [PATCH libXi] Fix XISelectEvents on 64 bits, strict alignement architectures.

2011-04-03 Thread Peter Hutterer
On Fri, Apr 01, 2011 at 10:49:09PM +0200, Matthieu Herrb wrote: > Use Data() to send the struct xXIEventMask on the wire instead of > Data32() which expects a pointer to a 64bits value on LP64 > architectures. > --- > src/XISelEv.c |2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > >

Re: [PATCHv2 2/2] xfree86: loader: use one exit code only for readability

2011-04-03 Thread Peter Hutterer
On Thu, Mar 31, 2011 at 04:26:07PM +0300, Tiago Vignatti wrote: > No functional changes. Spaghetti code for win! \o/ > > Signed-off-by: Tiago Vignatti > --- > hw/xfree86/loader/loadmod.c | 34 ++ > 1 files changed, 14 insertions(+), 20 deletions(-) > > diff --g

Re: [PATCH] xkbcomp: Stop possible overflow in yyGetnumber. #31647

2011-04-03 Thread Peter Hutterer
On Fri, Apr 01, 2011 at 08:09:20AM -0700, Dan Nicholson wrote: > On Fri, Apr 1, 2011 at 2:42 AM, Alistair Leslie-Hughes > wrote: > > > > Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=31647 > > > > Signed-off-by: Alistair Leslie-Hughes > > Looks reasonable. That 1024 is screaming for a #def

Re: [PATCH evtest] Add support for EV_SW

2011-04-03 Thread Peter Hutterer
On Fri, Apr 01, 2011 at 04:51:08PM +0800, Daniel Kurtz wrote: > EV_SW is the event type for switches. > The EV_SW event codes (SW_*) are defined in the linux kernel in linux/input.h. > > However, leave the definition of switches in ifdef blocks according to > when they were committed to the linux

Re: [PATCH] xf86-video-mga: replace deprecated X*alloc functions

2011-04-03 Thread Mikhail Gusarov
Twas brillig at 20:17:08 02.04.2011 UTC+02 when ni...@nikai.net did gyre and gimble: NK> Replace deprecated X*alloc functions. NK> Signed-off-by: Nicolas Kaiser Reviewed-by: Mikhail Gusarov -- http://fossarchy.blogspot.com/ pgpBlwY0xfFvl.pgp Description: PGP signature ___

Re: [PATCH] xf86-video-mga: replace deprecated X*alloc functions

2011-04-03 Thread Cyril Brulebois
For: Nicolas Kaiser (02/04/2011): > - if (pptNew2) xfree(pptNew2); > - if (pboxNew2) xfree(pboxNew2); > + if (pptNew2) free(pptNew2); > + if (pboxNew2) free(pboxNew2); and others, you may want to get rid of the if(), free() can handle NULL. KiBi.

Re: [PATCH] xf86-video-mga: fix typo in MGADRIMoveBuffersXAA()

2011-04-03 Thread Cyril Brulebois
Nicolas Kaiser (02/04/2011): > Fix typo in MGADRIMoveBuffersXAA(). > > Signed-off-by: Nicolas Kaiser Reviewed-by: Cyril Brulebois KiBi. signature.asc Description: Digital signature ___ xorg-devel@lists.x.org: X.Org development Archives: http://lis

[PATCH] xf86-video-mga: replace deprecated X*alloc functions

2011-04-03 Thread Nicolas Kaiser
Replace deprecated X*alloc functions. Signed-off-by: Nicolas Kaiser --- Tested on a Matrox G200. src/mga_dga.c|2 +- src/mga_dri.c| 70 +++--- src/mga_driver.c | 80 +++--- src/mga_merge.c |

[PATCH] xf86-video-mga: fix typo in MGADRIMoveBuffersXAA()

2011-04-03 Thread Nicolas Kaiser
Fix typo in MGADRIMoveBuffersXAA(). Signed-off-by: Nicolas Kaiser --- src/mga_dri.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/mga_dri.c b/src/mga_dri.c index 3fda623..2723dd8 100644 --- a/src/mga_dri.c +++ b/src/mga_dri.c @@ -962,7 +962,7 @@ static void MGADRI

[PATCH] xclipboard: Change resource to better position Accept/Cancel. #17364

2011-04-03 Thread Alistair Leslie-Hughes
Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=17364 Signed-off-by: Alistair Leslie-Hughes >From 9244b8d3a3a81d4e2d4bd6f869b9bb3b1150b29b Mon Sep 17 00:00:00 2001 From: Alistair Leslie-Hughes Date: Sun, 3 Apr 2011 20:10:54 +1000 Subject: [PATCH] xclipboard: Change resource to better positi

[PATCH] xkbcomp: Stop possible overflow in yyGetnumber. #31647 (try 2)

2011-04-03 Thread Alistair Leslie-Hughes
Changed to use a const int, as a suggestion from Dan. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=31647 Signed-off-by: Alistair Leslie-Hughes >From 8c1bdf5efad50477666735ae316203cf4e362fcb Mon Sep 17 00:00:00 2001 From: Alistair Leslie-Hughes Date: Fri, 1 Apr 2011 20:26:30 +1100 Subject