Re: [PATCH libX11-xcb] add XCBGetXDisplay

2016-01-01 Thread Julien Cristau
On Fri, Jan 1, 2016 at 11:39:32 -0800, Alan Coopersmith wrote: > Did we ever reach a conclusion on this patch? I was thinking of doing a > libX11 release sometime early this year, and if this is ready to include, > would pull it in. > > (Is http://patchwork.freedesktop.org/patch/50613/ the

[PATCH:xserver] Use unique logfile names when starting server with -displayfd

2016-01-01 Thread Alan Coopersmith
Fixes https://bugs.freedesktop.org/show_bug.cgi?id=93212 Previously all X servers started with -displayfd would overwrite Xorg.0.log - now a temporary name of Xorg.pid-.log is used until after -displayfd finds an open display - then it is renamed to the traditional Xorg..log name. Signed-off-by:

[PATCH:xserver] Avoid segfault in CloseWellKnownConnections when using -displayfd

2016-01-01 Thread Alan Coopersmith
When -displayfd is looping through the possible display ids to use, if it can't open all the listening sockets for one (say when :0 is already in use), it calls CloseWellKnownConnections to close all the ListenTransConns entries before the point that ListenTransFds was allocated & initialized, so

[PATCH:xserver] modesetting should not reference gbm when it's not defined

2016-01-01 Thread Alan Coopersmith
Fixes build errors of: present.c: In function 'ms_do_pageflip': present.c:410:17: error: 'drmmode_bo' has no member named 'gbm' new_front_bo.gbm = glamor_gbm_bo_from_pixmap(screen, new_front); ^ present.c:412:22: error: 'drmmode_bo' has no member named 'gbm' if

Re: [PATCH:xserver] Avoid segfault in CloseWellKnownConnections when using -displayfd

2016-01-01 Thread Keith Packard
Alan Coopersmith writes: > When -displayfd is looping through the possible display ids to use, > if it can't open all the listening sockets for one (say when :0 is > already in use), it calls CloseWellKnownConnections to close all > the ListenTransConns entries

[PATCH:libX11 1/7] Use strdup instead of Xmalloc+strcpy in _XDefaultOpenIM

2016-01-01 Thread Alan Coopersmith
Signed-off-by: Alan Coopersmith --- src/xlibi18n/XDefaultIMIF.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/xlibi18n/XDefaultIMIF.c b/src/xlibi18n/XDefaultIMIF.c index 4e75fa0..7c32ce2 100644 --- a/src/xlibi18n/XDefaultIMIF.c +++

[PATCH:libX11 6/7] XlcDL.c: reduce code duplication

2016-01-01 Thread Alan Coopersmith
Signed-off-by: Alan Coopersmith --- src/xlibi18n/XlcDL.c | 22 ++ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/src/xlibi18n/XlcDL.c b/src/xlibi18n/XlcDL.c index 519103b..bc71900 100644 --- a/src/xlibi18n/XlcDL.c +++

[PATCH:libX11 2/7] XDefaultOMIF: replace strlen+Xmalloc+strcpy with strdup

2016-01-01 Thread Alan Coopersmith
Code seems to have been originally written to handle appending multiple strings, but only ever operates on a single string. Signed-off-by: Alan Coopersmith --- src/xlibi18n/XDefaultOMIF.c | 23 --- 1 file changed, 8 insertions(+), 15 deletions(-)

[PATCH:libX11 4/7] XDefaultOMIF: Remove comments referring to ancient Sun bug ids

2016-01-01 Thread Alan Coopersmith
Signed-off-by: Alan Coopersmith --- src/xlibi18n/XDefaultOMIF.c | 15 +-- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/src/xlibi18n/XDefaultOMIF.c b/src/xlibi18n/XDefaultOMIF.c index 851e169..9345547 100644 ---

Re: please do not use in xdmcp.xml

2016-01-01 Thread Alan Coopersmith
On 11/11/15 01:23 PM, Helmut Grohne wrote: Hello Xorg developers, While furthering Debian's multiarch capabilities I ran into the issue that an xdmcp.txt generated from xdmcp.xml (in libxdmcp) would be dependent on the version of xorg-sgml-doctools. Due to the implementation of multiarch, the

Re: [PATCH] libxkbfile: Fix mistyped argument of sizeof

2016-01-01 Thread Alan Coopersmith
On 02/15/14 10:02 AM, Alan Coopersmith wrote: On 02/15/14 08:35 AM, Andreas Wettstein wrote: A pointer rather than the buffer was given to sizeof. As the data to be written is only one or two bytes, a pointer size is at least four bytes, and the buffer has 32 bytes, this error did not have

[PATCH:libX11 3/7] XDefaultOMIF: additional code simplification

2016-01-01 Thread Alan Coopersmith
Don't need to test for a case that we already returned for, don't need to store a count that will only ever be 1 if we didn't return, don't need to increment pointers to allow storing more than one item when we can only ever possibly do one. Signed-off-by: Alan Coopersmith

[PATCH:libX11 7/7] lcPubWrap: replace malloc(strlen) + strcpy with strdup

2016-01-01 Thread Alan Coopersmith
Signed-off-by: Alan Coopersmith --- src/xlibi18n/lcPubWrap.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/xlibi18n/lcPubWrap.c b/src/xlibi18n/lcPubWrap.c index d1096d5..3119918 100644 --- a/src/xlibi18n/lcPubWrap.c +++

[PATCH:libX11 5/7] XlcDL.c: replace strcpy+strcat sequences with snprintf

2016-01-01 Thread Alan Coopersmith
Signed-off-by: Alan Coopersmith --- src/xlibi18n/XlcDL.c | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/xlibi18n/XlcDL.c b/src/xlibi18n/XlcDL.c index a236038..519103b 100644 --- a/src/xlibi18n/XlcDL.c +++ b/src/xlibi18n/XlcDL.c

Re: Use hardware sprite plane as overlay

2016-01-01 Thread Jasper St. Pierre
Well, the X server shutdown process would have restored the fbcon console and turned out KD_TEXT, I would have thought. I don't think you can assume that the front buffer will stay exactly still quite yet. It also does mean that all clients that were previously running are now dead, and you have

Re: Use hardware sprite plane as overlay

2016-01-01 Thread Cao Duc Quan
Thanks Jasper. I plan to hook to QT embedded to make it use sprite plane buffer. I could make a tool (customized from modetest.c of libdrm) to render to sprite plane which are running in xorg. Thanks and Happy New Year. cdq On Wed, Dec 30, 2015 at 2:52 AM, Jasper St. Pierre

Re: [PATCH libXaw] obtaining textSink.textProperties by editres triggers sigsegv in inspected application

2016-01-01 Thread Alan Coopersmith
Since no one else had touched this in months, I've gone ahead and pushed a revised version to git master: http://cgit.freedesktop.org/xorg/lib/libXaw/commit/?id=4a7626b5127c0eb597cd2b8d0ae3de0286b74d7c -- -Alan Coopersmith- alan.coopersm...@oracle.com Oracle

Re: [PATCH libX11-xcb] add XCBGetXDisplay

2016-01-01 Thread Alan Coopersmith
Did we ever reach a conclusion on this patch? I was thinking of doing a libX11 release sometime early this year, and if this is ready to include, would pull it in. (Is http://patchwork.freedesktop.org/patch/50613/ the latest version or is there a newer one? I've lost track in my mail