Re: [PATCH] xfixes: avoid double-free of CursorScreenRec

2010-06-10 Thread Ben Skeggs
On Thu, 2010-06-10 at 23:08 -0700, Keith Packard wrote: > On Fri, 11 Jun 2010 14:26:57 +1000, Ben Skeggs wrote: > > > Without resetting the private's pointer to NULL, we can end up freeing > > the struct twice: > > > > ==11188== Invalid free() / delete / delete[] > > ==11188==at 0x4C24D72: fr

Re: include/list.h

2010-06-10 Thread Peter Hutterer
On Thu, Jun 10, 2010 at 11:04:20PM -0700, Keith Packard wrote: > On Fri, 11 Jun 2010 15:24:47 +1000, Peter Hutterer > wrote: > > > isn't the whole point of the list macros that we don't have dozens of > > different list implementations, all with their own bugs? > > you're just moving the problem

Re: [PATCH] xfixes: avoid double-free of CursorScreenRec

2010-06-10 Thread Keith Packard
On Fri, 11 Jun 2010 14:26:57 +1000, Ben Skeggs wrote: > Without resetting the private's pointer to NULL, we can end up freeing > the struct twice: > > ==11188== Invalid free() / delete / delete[] > ==11188==at 0x4C24D72: free (vg_replace_malloc.c:325) > ==11188==by 0x42D8A3: dixFreePrivat

Re: include/list.h

2010-06-10 Thread Keith Packard
On Fri, 11 Jun 2010 15:24:47 +1000, Peter Hutterer wrote: > isn't the whole point of the list macros that we don't have dozens of > different list implementations, all with their own bugs? > you're just moving the problem, not fixing it. For a singly linked list which is only freed once, I'd ha

Re: why not allow another process access to share memory of xvfb?

2010-06-10 Thread xin zhang
thank you you all! now i understand the reason and solution. 2010/6/10 Daniel Stone > > On Thu, Jun 10, 2010 at 03:10:52PM +0800, xin zhang wrote: > > Hi experts: > >     In Xvfb implementation, the frame buffer is allocated with IPC_PRIVATE > > if uses SHM. > >     Given that IPC_PRIVATE is just

Re: include/list.h

2010-06-10 Thread Peter Hutterer
On Thu, Jun 10, 2010 at 10:13:16PM -0700, Keith Packard wrote: > > Argh! A recent commit to the xf86 config parsing code added "list.h" to > xf86Parser.h, which is included by drivers to look stuff up. Because of > this, the intel driver no longer builds against master (would that the > drivers we

include/list.h

2010-06-10 Thread Keith Packard
Argh! A recent commit to the xf86 config parsing code added "list.h" to xf86Parser.h, which is included by drivers to look stuff up. Because of this, the intel driver no longer builds against master (would that the drivers were in the server tree...). I have an RC1 tar file sitting here and decide

Re: [PATCH] xfixes: avoid double-free of CursorScreenRec

2010-06-10 Thread Peter Hutterer
On Fri, Jun 11, 2010 at 02:26:57PM +1000, Ben Skeggs wrote: > From: Ben Skeggs > > Without resetting the private's pointer to NULL, we can end up freeing > the struct twice: > > ==11188== Invalid free() / delete / delete[] > ==11188==at 0x4C24D72: free (vg_replace_malloc.c:325) > ==11188==

[PATCH] xfixes: avoid double-free of CursorScreenRec

2010-06-10 Thread Ben Skeggs
From: Ben Skeggs Without resetting the private's pointer to NULL, we can end up freeing the struct twice: ==11188== Invalid free() / delete / delete[] ==11188==at 0x4C24D72: free (vg_replace_malloc.c:325) ==11188==by 0x42D8A3: dixFreePrivates (privates.c:217) ==11188==by 0x420CF6: ma

Re: [RFC PATCH] CreateRootWindow: Set root windows' drawable.x/y to -pScreen->x/y.

2010-06-10 Thread Keith Packard
On Thu, 10 Jun 2010 19:50:29 -0700, Jamey Sharp wrote: > I guess I'd need to run the test suite on a Xinerama server, and > probably need to ensure that windows that XTS creates span two > screens. Or something? I'm not sure how to even hit these cases, > especially in XTS. Yeah. It will be easi

Re: [RFC PATCH] CreateRootWindow: Set root windows' drawable.x/y to -pScreen->x/y.

2010-06-10 Thread Jamey Sharp
On Thu, Jun 10, 2010 at 6:59 PM, Keith Packard wrote: > As you might imagine, there are a million corner cases with tile origins > that could be broken here. Certainly the basic idea of making > drawable.x/drawable.y correct for tiling has a lot of merit. > > Fortunately, the test suite should be

Re: [PULL] Getting rid of xstrdup

2010-06-10 Thread Keith Packard
On Mon, 07 Jun 2010 21:04:38 +0700, Mikhail Gusarov wrote: > xfree86: Get rid of xstrdup when argument is definitely non-NULL This one now conflicts in non-obvious ways. Please feel free to fix this up and re-submit the pull request. -- keith.pack...@intel.com pgp9CkgiDu821.pgp Descri

[PULL] fixes from Solaris/OpenSolaris

2010-06-10 Thread Alan Coopersmith
The following changes since commit 07a093add0b7e40c4d9b9b59273e3ff9e14a88a7: Keith Packard (1): Merge remote branch 'whot/for-keith' are available in the git repository at: git://people.freedesktop.org/~alanc/xserver.git master Alan Coopersmith (2): Record some additional libra

Re: [RFC PATCH] CreateRootWindow: Set root windows' drawable.x/y to -pScreen->x/y.

2010-06-10 Thread Keith Packard
On Thu, 10 Jun 2010 15:37:40 -0700, Jamey Sharp wrote: > A window's DrawableRec's x and y fields contain the offsets to be > applied to protocol-visible window-relative coordinates in order to make > those coordinates screen-relative instead. When Xinerama is active, > coordinates relative to the

DRI2 fixes for 1.8-branch

2010-06-10 Thread Peter Hutterer
I've got a few DRI2 cherry-picks for 1.8 on git://people.freedesktop.org/~whot/xserver.git server-1.8-branch Cherry-picking them was more complicated than I hoped for since we had one of the patches reverted, then others on top, etc. And I don't know what I'm doing when it comes to DRI2. So, ple

[PATCH v2 xserver] config: declare xserver private dependencies in xorg-server.pc

2010-06-10 Thread Gaetan Nadon
Any module (drivers) depending on xserver also depends on some of the server private dependencies. Any driver including xf86.h depends on xext, kbproto, inputproto and randr. These dependencies are in separate packages, so anything can happen, removal, wrong version, etc... and the driver fails du

[PULL] xorg.conf.d additional match options

2010-06-10 Thread Peter Hutterer
Keith, please pull the set of input fixes below from my repo. Dan's patches add a few new matches for the InputClass matching system, essentially bringing it up to what the HAL system used to support. The Xi fix for 25480 is a rather important one, I'm pretty sure that's the cause for many of th

Re: performance of USB mouse initialization on startup

2010-06-10 Thread Peter Hutterer
On Thu, Jun 10, 2010 at 02:08:14PM +0300, Tiago Vignatti wrote: > On Thu, Jun 10, 2010 at 01:04:34PM +0200, ext Daniel Stone wrote: > > On Wed, Jun 09, 2010 at 12:26:34PM -0700, Richard Barnette wrote: > > > "And for my next trick..." > > > > > > Initialization for PS/2 compatible mice uses a numb

Re: [PATCH] Ignore RandR timestamps harder

2010-06-10 Thread Keith Packard
On Thu, 10 Jun 2010 13:49:52 -0400, Chase Douglas wrote: > On Thu, 2010-06-10 at 07:38 -0700, Keith Packard wrote: > > Checking timestamps in post 1.1 randr requests was never a good idea, > > let's ignore them and just make the configuration changes. > > > > Signed-off-by: Keith Packard > > --

[PATCH] exa: fix ExaCheckCopyNtoN for exa_classic when source = dest

2010-06-10 Thread Éric Piel
Hello, This patch originally written by Yves fixes this bug: https://bugs.freedesktop.org/show_bug.cgi?id=28077 Could someone review and apply it? Yves, don't hesitate to add your "Signed-off-by". Cheers, Eric From f958be1d48b7a75a4044a3db8a2b25c7c44662a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?

[RFC PATCH] CreateRootWindow: Set root windows' drawable.x/y to -pScreen->x/y.

2010-06-10 Thread Jamey Sharp
A window's DrawableRec's x and y fields contain the offsets to be applied to protocol-visible window-relative coordinates in order to make those coordinates screen-relative instead. When Xinerama is active, coordinates relative to the root window need to be adjusted for each screen by the position

Re: [PATCH 2/2] xfree86: configure: remove vendor and card name matching rules

2010-06-10 Thread Alan Coopersmith
Dan Nicholson wrote: > On Thu, Jun 10, 2010 at 7:04 AM, Guillem Jover wrote: >> On Wed, 2010-06-09 at 07:27:32 -0700, Alan Coopersmith wrote: >>> Tiago Vignatti wrote: Vendor and board naming were never used to create the configure file a device. This patch remove their references.

Re: [PATCH] Fix a couple more possible errors with input-only windows

2010-06-10 Thread Jamey Sharp
On Thu, Jun 10, 2010 at 7:31 AM, Keith Packard wrote: > Using type == DRAWABLE_WINDOW to differentiate between pixmaps and > windows isn't sufficient as input-only windows will end up in the > pixmap case. This patch changes a few more code paths to use > WindowDrawable instead. > > Signed-off-by:

Re: [PATCH] config: remove redundant DBUS API define, require dbus-1 >= 1.0

2010-06-10 Thread Dan Nicholson
On Wed, Jun 9, 2010 at 9:31 PM, Peter Hutterer wrote: > It's still being pulled in by the HAL CFLAGS but the requirement to define > this was dropped from DBus pre 1.0 (November 2006). > This means we require dbus 1.0 now. > > Signed-off-by: Peter Hutterer Reviewed-by: Dan Nicholson ___

Re: [PATCH] Ignore RandR timestamps harder

2010-06-10 Thread Chase Douglas
On Thu, 2010-06-10 at 07:38 -0700, Keith Packard wrote: > Checking timestamps in post 1.1 randr requests was never a good idea, > let's ignore them and just make the configuration changes. > > Signed-off-by: Keith Packard > --- > > Because the new randr code uses persistent resource ids for all

Re: [PATCH 2/2] xfree86: configure: remove vendor and card name matching rules

2010-06-10 Thread Dan Nicholson
On Thu, Jun 10, 2010 at 7:04 AM, Guillem Jover wrote: > On Wed, 2010-06-09 at 07:27:32 -0700, Alan Coopersmith wrote: >> Tiago Vignatti wrote: >> > Vendor and board naming were never used to create the configure file a >> > device. >> > This patch remove their references. >> >> I have been wantin

Re: [PATCH xserver] config: declare xserver private dependencies in xorg-server.pc

2010-06-10 Thread Dan Nicholson
On Thu, Jun 10, 2010 at 8:51 AM, Gaetan Nadon wrote: > On Thu, 2010-06-10 at 07:01 -0700, Dan Nicholson wrote: > > On Thu, Jun 10, 2010 at 6:14 AM, Julien Cristau wrote: >> On Thu, Jun 10, 2010 at 08:54:38 -0400, Gaetan Nadon wrote: >> >>> diff --git a/xorg-server.pc.in b/xorg-server.pc.in >>> in

Re: dixSetPrivate regression

2010-06-10 Thread Jeremy Huddleston
The following changes since commit 8e97e5f9425639ad0a084150d0b232cad417595d: Keith Packard (1): If XTest is always required, then eliminate the XTest devPrivate are available in the git repository at: git://people.freedesktop.org/~jeremyhu/xserver master Jeremy Huddleston (2):

[PATCH] In DRI2Connect, check to see if DRI2 has been initialized

2010-06-10 Thread Keith Packard
This prevents DRI2GetScreen from being invoked with an uninitialized private key which would cause an assert failure. Signed-off-by: Keith Packard --- hw/xfree86/dri2/dri2.c |6 +- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/hw/xfree86/dri2/dri2.c b/hw/xfree86/dri2/d

[PATCH] Ignore RandR timestamps harder

2010-06-10 Thread Keith Packard
Checking timestamps in post 1.1 randr requests was never a good idea, let's ignore them and just make the configuration changes. Signed-off-by: Keith Packard --- Because the new randr code uses persistent resource ids for all of the objects in question, there's no concern that the configuration

Re: dixSetPrivate regression

2010-06-10 Thread Keith Packard
On Mon, 07 Jun 2010 00:52:11 -0700, Jeremy Huddleston wrote: > Ok, that seems to get past the problem in XQuartz, but we're still > failing in xtest ... I don't have this patch in master yet; can you ship me what you've tested so I can get it merged today? -- keith.pack...@intel.com pgpMpR

[PATCH] Fix a couple more possible errors with input-only windows

2010-06-10 Thread Keith Packard
Using type == DRAWABLE_WINDOW to differentiate between pixmaps and windows isn't sufficient as input-only windows will end up in the pixmap case. This patch changes a few more code paths to use WindowDrawable instead. Signed-off-by: Keith Packard --- The xinerama patch replaces a hand-written t

Re: why not allow another process access to share memory of xvfb?

2010-06-10 Thread Keith Packard
On Thu, 10 Jun 2010 15:10:52 +0800, xin zhang wrote: > Why not add a param which allows user pass a string to produce IPC key, > and create share memory > with the key, then other process will really access to the frame buffer. Xvfb used to do precisely this, and it was frankly quite use

Re: [PATCH xserver] config: declare xserver private dependencies in xorg-server.pc

2010-06-10 Thread Gaetan Nadon
On Thu, 2010-06-10 at 07:01 -0700, Dan Nicholson wrote: > On Thu, Jun 10, 2010 at 6:14 AM, Julien Cristau wrote: > > On Thu, Jun 10, 2010 at 08:54:38 -0400, Gaetan Nadon wrote: > > > >> diff --git a/xorg-server.pc.in b/xorg-server.pc.in > >> index 44f886a..898bed2 100644 > >> --- a/xorg-server.pc

[PATCH evdev 3/3 v4] Dummy process of MT events (protocol A).

2010-06-10 Thread Benjamin Tissoires
The MT-protocol A is the one that sends SYN_MT_REPORT. It is opposed to the new one based on MT_SLOTS (protocol B). (see kernel_src/Documentation/input/multi-touch-protocol.txt) The processing is "dummy" since there is no computation while receiving mt events: it just stores it at the first availa

[PATCH evdev 2/3 v4] Add the new valuators for multitouch

2010-06-10 Thread Benjamin Tissoires
The step one in implementing multitouch in evdev is to report all the touches in different valuators. This patch detects multitouch devices and creates the extra valuators required for multitouch. Bonus point: this patch also sort the multitouch valuators to have ABS_MT_POSITION_X and ABS_MT_POSIT

[PATCH evdev 1/3] Add the names of the valuators for the multitouch properties

2010-06-10 Thread Benjamin Tissoires
The driver has to know the correct labels of the ABS_MT_* events. However, to keep compatibility with older xserver that don't define the corresponding labels, this patch does not inject them in the list. Signed-off-by: Benjamin Tissoires --- src/evdev.c | 29 + 1 f

[PATCH evdev 0/3] Preliminary support of multitouch (rev4)

2010-06-10 Thread Benjamin Tissoires
Hi, Even if there is an interesting thread concerning the use of multitouch on xorg-devel, I still send the up-to-date patches to enable multitouch as valuators. Changes since last time: * Remove the detection of the maximum number of touches based on the tracking ID * changes in comments Chee

Re: [PATCH app-xscope] Use strncpy rather than strlcpy as it is not available on Linux

2010-06-10 Thread Guillem Jover
On Thu, 2010-06-10 at 15:53:52 +0100, Daniel Stone wrote: > On Thu, Jun 10, 2010 at 03:59:51PM +0200, Guillem Jover wrote: > > On Wed, 2010-06-09 at 16:10:02 -0700, Alan Coopersmith wrote: > > > Gaetan Nadon wrote: > > > > Because it is available on other platforms, it only fails on Linux. > > > >

Re: [PATCH 3/3] configure: force new version of libXfont

2010-06-10 Thread Daniel Stone
On Thu, Jun 10, 2010 at 04:41:16PM +0300, Tiago Vignatti wrote: > It's required to get new register_fpe_functions dependency. This should come with or before patch #1, which actually introduces the dependency. Cheers, Daniel signature.asc Description: Digital signature _

Re: [PATCH libXfont 2/2] libXfont 1.4.2

2010-06-10 Thread Daniel Stone
On Thu, Jun 10, 2010 at 04:41:13PM +0300, Tiago Vignatti wrote: > diff --git a/src/Makefile.am b/src/Makefile.am > index d658667..c870585 100644 > --- a/src/Makefile.am > +++ b/src/Makefile.am > @@ -65,4 +65,4 @@ libXfont_la_LIBADD = \ > > libXfont_la_SOURCES = dummy.c > > -libXfont_la_LDFLAGS

Re: [PATCH app-xscope] Use strncpy rather than strlcpy as it is not available on Linux

2010-06-10 Thread Daniel Stone
On Thu, Jun 10, 2010 at 03:59:51PM +0200, Guillem Jover wrote: > On Wed, 2010-06-09 at 16:10:02 -0700, Alan Coopersmith wrote: > > Gaetan Nadon wrote: > > > Because it is available on other platforms, it only fails on Linux. > > > > *sigh* is GNU libc ever going to get with the program? > > On G

Re: [PATCH 3/3] configure: force new version of libXfont

2010-06-10 Thread Julien Cristau
On Thu, Jun 10, 2010 at 16:41:16 +0300, Tiago Vignatti wrote: > It's required to get new register_fpe_functions dependency. > > Signed-off-by: Tiago Vignatti > --- > configure.ac |8 ++-- > 1 files changed, 6 insertions(+), 2 deletions(-) > This should probably be squashed with the fir

Re: [PATCH 1/3] dix: use one single function to register fpe fonts

2010-06-10 Thread Julien Cristau
On Thu, Jun 10, 2010 at 16:41:14 +0300, Tiago Vignatti wrote: > diff --git a/include/dixfont.h b/include/dixfont.h > index cf86f54..617b94a 100644 > --- a/include/dixfont.h > +++ b/include/dixfont.h > @@ -141,10 +141,7 @@ extern _X_EXPORT void InitGlyphCaching(void); > > extern _X_EXPORT void S

Re: [PATCH 1/3] dix: use one single function to register fpe fonts

2010-06-10 Thread Alex Deucher
On Thu, Jun 10, 2010 at 9:41 AM, Tiago Vignatti wrote: > X server doesn't need to understand fpe internals, so use > register_fpe_functions from libXfont. > > Signed-off-by: Tiago Vignatti Seems sane to me. For the series: Reviewed-by: Alex Deucher > --- >  dix/dixfonts.c    |    4 +--- >  i

Re: [PATCH libXfont 1/2] Use one single function to register fpe functions

2010-06-10 Thread Alex Deucher
On Thu, Jun 10, 2010 at 9:41 AM, Tiago Vignatti wrote: > X server doesn't need to understand fpe internals, so let it transparent > turning all registration functions in a single one. For that, fill the already > existent register_fpe_functions(). > > Some X servers don't want font server support,

Re: [PATCH libXfont 1/2] Use one single function to register fpe functions

2010-06-10 Thread Mikhail Gusarov
Twas brillig at 16:41:12 10.06.2010 UTC+03 when tiago.vigna...@nokia.com did gyre and gimble: TV> X server doesn't need to understand fpe internals, so let it TV> transparent turning all registration functions in a single one. For TV> that, fill the already existent register_fpe_functions().

Re: [PATCH 2/2] xfree86: configure: remove vendor and card name matching rules

2010-06-10 Thread Guillem Jover
On Wed, 2010-06-09 at 07:27:32 -0700, Alan Coopersmith wrote: > Tiago Vignatti wrote: > > Vendor and board naming were never used to create the configure file a > > device. > > This patch remove their references. > > I have been wanting for a while to move the autoconfiguration matching for > vid

[PATCH 2/3] configure: don't check xfont always for each server

2010-06-10 Thread Tiago Vignatti
It's already defined inside REQUIRED_LIBS and all DDX are getting it already. No semantical changes. Signed-off-by: Tiago Vignatti --- This is just clean-up. configure.ac |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/configure.ac b/configure.ac index c8b49de..4

[PATCH 1/3] dix: use one single function to register fpe fonts

2010-06-10 Thread Tiago Vignatti
X server doesn't need to understand fpe internals, so use register_fpe_functions from libXfont. Signed-off-by: Tiago Vignatti --- dix/dixfonts.c|4 +--- include/dixfont.h |5 + 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/dix/dixfonts.c b/dix/dixfonts.c index e3

[PATCH 3/3] configure: force new version of libXfont

2010-06-10 Thread Tiago Vignatti
It's required to get new register_fpe_functions dependency. Signed-off-by: Tiago Vignatti --- configure.ac |8 ++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 48ee44d..be524be 100644 --- a/configure.ac +++ b/configure.ac @@ -794,7 +79

[PATCH libXfont 2/2] libXfont 1.4.2

2010-06-10 Thread Tiago Vignatti
Signed-off-by: Tiago Vignatti --- configure.ac|2 +- src/Makefile.am |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 35ac80b..49f1d06 100644 --- a/configure.ac +++ b/configure.ac @@ -23,7 +23,7 @@ dnl Process this file with autoc

[PATCH libXfont 1/2] Use one single function to register fpe functions

2010-06-10 Thread Tiago Vignatti
X server doesn't need to understand fpe internals, so let it transparent turning all registration functions in a single one. For that, fill the already existent register_fpe_functions(). Some X servers don't want font server support, so this patch also sets font server support to be configured in

Re: [PATCH app-xscope] Use strncpy rather than strlcpy as it is not available on Linux

2010-06-10 Thread Guillem Jover
On Wed, 2010-06-09 at 16:10:02 -0700, Alan Coopersmith wrote: > Gaetan Nadon wrote: > > Because it is available on other platforms, it only fails on Linux. > > *sigh* is GNU libc ever going to get with the program? On GNU based systems libbsd [0] provides such function (among others). regards,

Re: [PATCH xserver] config: declare xserver private dependencies in xorg-server.pc

2010-06-10 Thread Dan Nicholson
On Thu, Jun 10, 2010 at 6:14 AM, Julien Cristau wrote: > On Thu, Jun 10, 2010 at 08:54:38 -0400, Gaetan Nadon wrote: > >> diff --git a/xorg-server.pc.in b/xorg-server.pc.in >> index 44f886a..898bed2 100644 >> --- a/xorg-server.pc.in >> +++ b/xorg-server.pc.in >> @@ -16,5 +16,6 @@ Name: xorg-server

Re: why not allow another process access to share memory of xvfb?

2010-06-10 Thread Alan Coopersmith
xin zhang wrote: > Hi experts: > In Xvfb implementation, the frame buffer is allocated with > IPC_PRIVATE if uses SHM. > Given that IPC_PRIVATE is just useful to parent/child process, and > given X is a single process, > I don't realize what is the use. > Why not add a param whic

Re: video driver matching via xorg.conf.d

2010-06-10 Thread Dan Nicholson
On Wed, Jun 9, 2010 at 11:15 PM, Alan Coopersmith wrote: > Dan Nicholson wrote: >> On Wed, Jun 9, 2010 at 7:27 AM, Alan Coopersmith >> wrote: >>> Tiago Vignatti wrote: Vendor and board naming were never used to create the configure file a device. This patch remove their references

Re: [PATCH v2 08/11] xfree86: Match devices based on USB ID

2010-06-10 Thread Dan Nicholson
On Mon, Jun 07, 2010 at 08:39:55PM -0700, Dan Nicholson wrote: > Sometimes the vendor and product names aren't specific enough to target > a USB device, so expose the numeric codes in the ID. A MatchUSBID entry > has been added that supports shell pattern matching when fnmatch(3) is > available. Fo

Re: [PATCH xserver] config: declare xserver private dependencies in xorg-server.pc

2010-06-10 Thread Julien Cristau
On Thu, Jun 10, 2010 at 08:54:38 -0400, Gaetan Nadon wrote: > diff --git a/xorg-server.pc.in b/xorg-server.pc.in > index 44f886a..898bed2 100644 > --- a/xorg-server.pc.in > +++ b/xorg-server.pc.in > @@ -16,5 +16,6 @@ Name: xorg-server > Description: Modular X.Org X Server > Version: @PACKAGE_VER

Re: [PATCH v2 07/11] xfree86: Match devices based on PnP ID

2010-06-10 Thread Dan Nicholson
On Thu, Jun 10, 2010 at 02:48:48PM +1000, Peter Hutterer wrote: > On Mon, Jun 07, 2010 at 08:39:54PM -0700, Dan Nicholson wrote: > > Serial input devices lack properties such as product or vendor name. This > > makes matching InputClass sections difficult. Add a MatchPnPID entry to > > test against

[PATCH xserver] config: declare xserver private dependencies in xorg-server.pc

2010-06-10 Thread Gaetan Nadon
Any module (drivers) depending on xserver also depends on some of the server private dependencies. Any driver including xf86.h depends on xext, kbproto, inputproto and randr. These dependencies are in separate packages, so anything can happen, removal, wrong version, etc... and the driver fails du

Re: [PATCH v2 07/11] xfree86: Match devices based on PnP ID

2010-06-10 Thread Dan Nicholson
On Wed, Jun 9, 2010 at 9:48 PM, Peter Hutterer wrote: > On Mon, Jun 07, 2010 at 08:39:54PM -0700, Dan Nicholson wrote: >> Serial input devices lack properties such as product or vendor name. This >> makes matching InputClass sections difficult. Add a MatchPnPID entry to >> test against the PnP ID

Re: performance of USB mouse initialization on startup

2010-06-10 Thread Mikhail Gusarov
Twas brillig at 13:50:27 10.06.2010 UTC+02 when jcris...@debian.org did gyre and gimble: >> Does it makes sense to set a trap on autoconf to disables Linux on those >> drivers then? JC> If nothing else there are still people using serial mice. Aren't those handled by input driver in kernel?

Re: performance of USB mouse initialization on startup

2010-06-10 Thread Julien Cristau
On Thu, Jun 10, 2010 at 14:08:14 +0300, Tiago Vignatti wrote: > Does it makes sense to set a trap on autoconf to disables Linux on those > drivers then? IMO no. If nothing else there are still people using serial mice. Cheers, Julien ___ xorg-devel@li

RE: performance of USB mouse initialization on startup

2010-06-10 Thread B.S., Shashi Shekar
> -Original Message- > From: xorg-devel-bounces+shashi.shekar=ti@lists.x.org > [mailto:xorg-devel-bounces+shashi.shekar=ti@lists.x.org] > On Behalf Of Tiago Vignatti > Sent: Thursday, June 10, 2010 4:38 PM > To: ext Daniel Stone > Cc: xorg-devel@lists.x.org; Richard Barnette >

Re: performance of USB mouse initialization on startup

2010-06-10 Thread Tiago Vignatti
On Thu, Jun 10, 2010 at 01:04:34PM +0200, ext Daniel Stone wrote: > On Wed, Jun 09, 2010 at 12:26:34PM -0700, Richard Barnette wrote: > > "And for my next trick..." > > > > Initialization for PS/2 compatible mice uses a number of explicit calls > > to usleep(). The code mostly lives in src/pnp.c,

Re: why not allow another process access to share memory of xvfb?

2010-06-10 Thread Daniel Stone
On Thu, Jun 10, 2010 at 03:10:52PM +0800, xin zhang wrote: > Hi experts: > In Xvfb implementation, the frame buffer is allocated with IPC_PRIVATE > if uses SHM. > Given that IPC_PRIVATE is just useful to parent/child process, and given > X is a single process, > I don't realize what is

Re: [PATCH] Xi: don't copy the modifier key count when copying device classes (#25480)

2010-06-10 Thread Daniel Stone
On Thu, Jun 10, 2010 at 12:21:36PM +1000, Peter Hutterer wrote: > The modifier key count is maintained by the XKB layer and > increased/decreased for all modifiers that set state. > > Test case, MD/SD modifier key count in comment: > 1. keyboard 1: press and hold Shift_L# SD:1 MD:1 > 2. ke

Re: performance of USB mouse initialization on startup

2010-06-10 Thread Daniel Stone
On Wed, Jun 09, 2010 at 12:26:34PM -0700, Richard Barnette wrote: > "And for my next trick..." > > Initialization for PS/2 compatible mice uses a number of explicit calls > to usleep(). The code mostly lives in src/pnp.c, under > xorg/driver/xf86-input-mouse. > > The pattern of sleep calls is su

Re: [PATCH app-xscope] Use strncpy rather than strlcpy as it is not available on Linux

2010-06-10 Thread Daniel Stone
On Wed, Jun 09, 2010 at 04:10:02PM -0700, Alan Coopersmith wrote: > Gaetan Nadon wrote: > > Because it is available on other platforms, it only fails on Linux. > > *sigh* is GNU libc ever going to get with the program? Nope; Ulrich Drepper thinks it's stupid, so it's not ever going to get merged

Re: video driver matching via xorg.conf.d

2010-06-10 Thread Daniel Stone
On Wed, Jun 09, 2010 at 11:15:33PM -0700, Alan Coopersmith wrote: > I don't think the device initialization code is involved. What I was > thinking > of was replacing the code currently in xf86AutoConfig() in > common/xf86AutoConfig.c and videoPtrToDriverList() in xf86pciBus.c (and I > guess >

Re: [PATCH] config: remove redundant DBUS API define, require dbus-1 >= 1.0

2010-06-10 Thread Daniel Stone
On Thu, Jun 10, 2010 at 02:31:48PM +1000, Peter Hutterer wrote: > It's still being pulled in by the HAL CFLAGS but the requirement to define > this was dropped from DBus pre 1.0 (November 2006). > This means we require dbus 1.0 now. > > Signed-off-by: Peter Hutterer Reviewed-by: Daniel Stone

Re: [PATCH 2/2] xfree86: configure: remove vendor and card name matching rules

2010-06-10 Thread James Cloos
> "TV" == Tiago Vignatti writes: TV> Vendor and board naming were never used to create the configure file a device. TV> This patch remove their references. TV> Reported-by: Richard Barnette TV> Signed-off-by: Tiago Vignatti That first sentence is ill-formed. Did you mean «configure file

Re: [PATCH 1/2] xfree86: pci: remove superfluous vendor and card name logging

2010-06-10 Thread James Cloos
> "TV" == Tiago Vignatti writes: TV> X server suffers in startup time when relying on the pciaccess's linear search TV> to fetch vendor and video device name from PCI ID file (when existent). Such TV> names are only used to write the log, which may be superfluous. Users can get TV> the same

Re: supported gcc versions (was [PATCH:libXmu] Use _X_ATTRIBUTE_PRINTF from Xfuncproto.h in Xmu headers)

2010-06-10 Thread Matthieu Herrb
On Wed, Jun 09, 2010 at 01:20:41PM -0700, Alan Coopersmith wrote: > That sounds like we could almost just call it #ifdef __GNUC__ then. > > The oldest gcc version I remember us claiming to support in X.Org > was 2.95, since that's what one of the BSD's was using (and possibly > a previous RHEL?).

why not allow another process access to share memory of xvfb?

2010-06-10 Thread xin zhang
Hi experts: In Xvfb implementation, the frame buffer is allocated with IPC_PRIVATE if uses SHM. Given that IPC_PRIVATE is just useful to parent/child process, and given X is a single process, I don't realize what is the use. Why not add a param which allows user pass a string to pro

Re: xserver: Branch 'master'

2010-06-10 Thread Robert Hooker
2010/6/9 Michel Dänzer : > On Die, 2010-06-08 at 12:57 -0700, Keith Packard wrote: >> On Tue, 08 Jun 2010 09:57:44 +0200, Michel Dänzer wrote: >> >> > FWIW, I would have proposed the patch below instead. >> >> That looks better to me; I was after 'not crashing' while your patch >> eliminates the D