Re: [PATCH:libXdmcp] Use arc4random when available to produce the XDM-AUTHENTICATION1 key

2013-08-07 Thread Alan Coopersmith
On 08/ 4/13 01:53 AM, Matthieu Herrb wrote: arc4random() and associated functions can be found in libbsd on GNU/Linux systems. Signed-off-by: Matthieu Herrb Reviewed-by: Alan Coopersmith -- -Alan Coopersmith- alan.coopersm...@oracle.com Oracle Solaris Engineer

[PATCH evdev] Don't use mtdev for protocol B devices

2013-08-07 Thread Peter Hutterer
If a device has ABS_MT_SLOT, mtdev merely reads the events and returns them to the caller as-is. For this we don't need mtdev, we can just handle those events ourselves. This patch switches to the mtdev plumbing layer that takes events and converts them instead of reading them off the fd. Signed-

Re: Fix bogus timestamp generated by XIM (https://bugs.freedesktop.org/show_bug.cgi?id=39367)

2013-08-07 Thread Alan Coopersmith
On 08/ 6/13 09:43 PM, ishikawa wrote: I subsequently posted the final patch to xorg-devel mailing list. It is recorded in the following: [2]http://patchwork.freedesktop.org/patch/12686/ Pushed to ssh://git.freedesktop.org/git/xorg/lib/libX11: e7fd6f0..8f58e54 master -> master -- -A

[PATCH xinput] Fix version selection condition

2013-08-07 Thread Peter Hutterer
If XI22 is true, XI21 is set too so we'd never actually register for XI 2.2 Signed-off-by: Peter Hutterer --- src/xinput.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/xinput.c b/src/xinput.c index e6e468c..b0e0e7f 100644 --- a/src/xinput.c +++ b/src/xinput.c @@

Re: [PATCH 1/3] xfree86: Add a xf86MonitorFindHDMIBlock()

2013-08-07 Thread walter harms
Am 07.08.2013 18:04, schrieb Damien Lespiau: > The HDMI CEA vendor specific block has some interesting information, > such as the maximum TMDS dot clock. > > Signed-off-by: Damien Lespiau > Tested-by: Cancan Feng > --- > hw/xfree86/ddc/interpret_edid.c | 88 >

Re: [PATCH xauth] Look for FamilyLocal if inet or inet6 address is loopback

2013-08-07 Thread walter harms
Am 07.08.2013 17:00, schrieb Egbert Eich: > On Tue, Jul 30, 2013 at 11:01:02AM +0200, Egbert Eich wrote: >> libxcb uses FamilyLocal authorization if the host name or IP in the >> display string is from the loopback device. This patch adds the same >> behavior to xauth. >> This fixes a long standi

[PATCH 3/3] xfree86: Use the TMDS maximum frequency to prune modes

2013-08-07 Thread Damien Lespiau
Instead of only relying on the Range section, we can do better on HDMI to find out what is the max dot clock the monitor supports. The HDMI CEA vendor block adds a TMDS max freq we can use. This makes X not prune 4k resolutions on HDMI. Signed-off-by: Damien Lespiau Tested-by: Cancan Feng ---

[PATCH 2/3] xfree86: Refactor xf86MonitorIsHDMI() using xf86MonitorFindHDMIBlock()

2013-08-07 Thread Damien Lespiau
Signed-off-by: Damien Lespiau --- hw/xfree86/ddc/interpret_edid.c | 46 + 1 file changed, 1 insertion(+), 45 deletions(-) diff --git a/hw/xfree86/ddc/interpret_edid.c b/hw/xfree86/ddc/interpret_edid.c index 10c1c3a..1954975 100644 --- a/hw/xfree86/ddc/inte

[PATCH 1/3] xfree86: Add a xf86MonitorFindHDMIBlock()

2013-08-07 Thread Damien Lespiau
The HDMI CEA vendor specific block has some interesting information, such as the maximum TMDS dot clock. Signed-off-by: Damien Lespiau Tested-by: Cancan Feng --- hw/xfree86/ddc/interpret_edid.c | 88 + hw/xfree86/ddc/xf86DDC.h| 2 + 2 files chang

Use the TMDS maximum frequency to check mode dot clock

2013-08-07 Thread Damien Lespiau
This series was written to make the X server not prune 4k modes on HDMI. The HDMI CEA vendor specific data block has a max TMDS clock field that can be used to check dot clocks against. This series is quite possibly useful to not prune non-4k modes with clocks above what the range section is adver

Re: [PATCH xauth] Look for FamilyLocal if inet or inet6 address is loopback

2013-08-07 Thread Egbert Eich
On Tue, Jul 30, 2013 at 11:01:02AM +0200, Egbert Eich wrote: > libxcb uses FamilyLocal authorization if the host name or IP in the > display string is from the loopback device. This patch adds the same > behavior to xauth. > This fixes a long standing problem that for ssh tunneled connections > a d

Re: [PATCH xauth] Make matching algorithm mimic XauGet*AuthByAddr

2013-08-07 Thread Egbert Eich
On Tue, Jul 30, 2013 at 11:01:40AM +0200, Egbert Eich wrote: > Xlib (xcb) uses XauGetBestAuthByAddr() when looking for an > authorization. 'xauth [n]list $DISPLAY' used a slightly > stricter algorithm which doesn't find a possible authorization > for cases where either the family is set to FamilyWi

[PATCH RESEND] xfree86: prune duplicate monitor modes.

2013-08-07 Thread Michel Dänzer
From: Leo Liu same monitor modes added causing memory leak when looping `xrandr --prop'. Signed-off-by: Leo Liu Signed-off-by: Michel Dänzer --- hw/xfree86/modes/xf86EdidModes.c | 22 ++ 1 file changed, 22 insertions(+) diff --git a/hw/xfree86/modes/xf86EdidModes.c b/hw

[PATCH] xfree86: fix a memory leak in edidMakeAtom().

2013-08-07 Thread Michel Dänzer
From: Leo Liu leak happens when looping `xrandr --prop', need free for the mallocated data, duplication of passed data to make sure free dynamic allocation inside the xf86RegisterRootWindowProperty(). Signed-off-by: Leo Liu Signed-off-by: Michel Dänzer --- hw/xfree86/common/xf86Helper.c |