[PATCH] Use new FP1616/FP3232 conversion functions

2011-10-24 Thread Peter Hutterer
Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- Xi/xiquerydevice.c |7 +++ dix/eventconvert.c | 14 -- 2 files changed, 7 insertions(+), 14 deletions(-) diff --git a/Xi/xiquerydevice.c b/Xi/xiquerydevice.c index 9961d1b..5f543f6 100644 --- a/Xi/xiquerydevice.c

Re: Re: Re: [PATCH evdev] type-safe inline functions for bitmask manipulation

2011-10-24 Thread Peter Hutterer
On Wed, Oct 19, 2011 at 09:34:47AM +0200, Max Schwarz wrote: EvdevBitIsSet(array, KEY_A):array[0] (1 30) BitIsOn(ptr, KEY_A):((BYTE*)ptr)[3] (1 6) That is true on little-endian. Big-endian machines have that byte in position 0, so that one would need to be

Re: transset

2011-10-24 Thread Arnaud Fontaine
Hi, Alan Coopersmith alan.coopersm...@oracle.com writes: Sorry for taking so long, finally found what we had here and it was in even more meager shape than I remembered, but I've pushed it out for what little help that is: No problem at all, it does help a lot. Thank you very much. I will

adding a custom modeline with xrandr (dummy driver)

2011-10-24 Thread Antoine Martin
Hi, Whenever an xpra client connects to a server I want to resize the dummy xserver to match the client's resolution exactly. The server is started with: Xorg +extension RANDR +extension RENDER -config xorg-dummy.conf I calculate a modeline using: http://xtiming.sourceforge.net/cgi-bin/xtiming.pl

Re: adding a custom modeline with xrandr (dummy driver)

2011-10-24 Thread Jamey Sharp
On Mon, Oct 24, 2011 at 05:20:29PM +0700, Antoine Martin wrote: Whenever an xpra client connects to a server I want to resize the dummy xserver to match the client's resolution exactly. ... Failed to change the screen configuration! Off-hand, I'd guess nobody has implemented RANDR support in

Re: adding a custom modeline with xrandr (dummy driver)

2011-10-24 Thread Antoine Martin
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 10/24/2011 06:26 PM, Jamey Sharp wrote: On Mon, Oct 24, 2011 at 05:20:29PM +0700, Antoine Martin wrote: Whenever an xpra client connects to a server I want to resize the dummy xserver to match the client's resolution exactly. ... Failed to

user visible monitor hotplug events

2011-10-24 Thread Kai-Uwe Behrmann
Hello, what's the way to get monitor hotplug events in a user desktop session? I want to setup ICC profiles during monitor connections and deconnections. Currently this is done inside Compiz. But I want to put the setup code into a speperate application. Ideally this application would be called

Re: [PATCH xserver] composite: Update borderClip in compAllocPixmap()

2011-10-24 Thread Jeremy Huddleston
On Oct 20, 2011, at 06:04, Ville Syrjälä wrote: On Wed, Oct 19, 2011 at 05:26:09PM -0700, Keith Packard wrote: On Sun, 9 Oct 2011 01:11:04 +0300, Ville Syrjala syrj...@sci.fi wrote: Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=22566 Merged. e4787ec..a5266dc master - master

Re: [PATCH] Use new FP1616/FP3232 conversion functions

2011-10-24 Thread Jeremy Huddleston
Reviewed-by: Jeremy Huddleston jerem...@apple.com On Oct 23, 2011, at 23:02, Peter Hutterer wrote: Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- Xi/xiquerydevice.c |7 +++ dix/eventconvert.c | 14 -- 2 files changed, 7 insertions(+), 14 deletions(-) diff

Re: [PATCH:libXfont 3/4] Fix printf warnings about incorrect argument types

2011-10-24 Thread Julien Cristau
On Sun, Oct 23, 2011 at 16:53:59 -0700, Jeremy Huddleston wrote: Why not change the format string to use %ld for sizeof() instead of casting? That would be %zu. Cheers, Julien ___ xorg-devel@lists.x.org: X.Org development Archives:

Re: user visible monitor hotplug events

2011-10-24 Thread Aaron Plattner
On 10/24/2011 07:45 AM, Kai-Uwe Behrmann wrote: Hello, what's the way to get monitor hotplug events in a user desktop session? I want to setup ICC profiles during monitor connections and deconnections. Currently this is done inside Compiz. But I want to put the setup code into a speperate

Re: Fwd: Re: user visible monitor hotplug events

2011-10-24 Thread Kai-Uwe Behrmann
Am 24.10.2011 13:26, schrieb Aaron Plattner: On 10/24/2011 07:45 AM, Kai-Uwe Behrmann wrote: what's the way to get monitor hotplug events in a user desktop session? I want to setup ICC profiles during monitor connections and deconnections. Currently this is done inside Compiz. But I want to

Re: Fwd: Re: user visible monitor hotplug events

2011-10-24 Thread Aaron Plattner
On 10/24/2011 02:39 PM, Kai-Uwe Behrmann wrote: Am 24.10.2011 13:26, schrieb Aaron Plattner: On 10/24/2011 07:45 AM, Kai-Uwe Behrmann wrote: what's the way to get monitor hotplug events in a user desktop session? I want to setup ICC profiles during monitor connections and deconnections.

[PATCH/RFC evdev] Use a new Virtual Device boolean property to mark virtual devices

2011-10-24 Thread Peter Hutterer
Use udev to check for the device's sysfs path, if it contains LNXSYSTM it's a kernel-emulated device. This property can then be used to determine if there are any real devices connected, allowing the desktop environment to e.g. turn off the touchpad whenever there's a mouse attached.

Re: [PATCH] Export include/input.h:GetMaster() function

2011-10-24 Thread Peter Hutterer
On Mon, Oct 17, 2011 at 01:17:15PM +0200, Adam Tkac wrote: On 10/13/2011 07:29 AM, Peter Hutterer wrote: On Wed, Oct 12, 2011 at 12:44:00PM +0200, Adam Tkac wrote: On 10/12/2011 06:27 AM, Peter Hutterer wrote: On Tue, Oct 11, 2011 at 03:12:56PM +0200, Adam Tkac wrote: attached patch

Re: Syntax enhancements for Match statements

2011-10-24 Thread Peter Hutterer
On Mon, Oct 17, 2011 at 09:00:26PM +0300, Oleh Nykyforchyn wrote: Hi colleagues, It has been written a long time ago about my patches, which introduced negation, |+ and regexes to Match statements: On Thu, 23 Jun 2011 12:06:46 +1000 Peter Hutterer peter.hutte...@who-t.net wrote:

Re: [PULL] device changed events, input device init fixes

2011-10-24 Thread Keith Packard
On Fri, 21 Oct 2011 11:08:17 +1000, Peter Hutterer peter.hutte...@who-t.net wrote: Peter Hutterer (12): input: switch InputOption to use XF86OptionRec storage. This breaks kdrive: kinput.c: In function 'KdGetOptions': kinput.c:1046:32: error: invalid application of 'sizeof' to

Re: [PATCH] xf86Crtc: handle no outputs with no modes harder.

2011-10-24 Thread Keith Packard
On Thu, 20 Oct 2011 14:43:01 +0100, Dave Airlie airl...@gmail.com wrote: From: Dave Airlie airl...@redhat.com If you started an X server with no connected outputs, we pick a default 1024x768 mode, however if you then ran an xvidmode using app against that server it would segfault the server

[PATCH] kdrive: switch to new InputOption API.

2011-10-24 Thread Peter Hutterer
Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- hw/kdrive/src/kinput.c | 133 ++-- 1 files changed, 73 insertions(+), 60 deletions(-) diff --git a/hw/kdrive/src/kinput.c b/hw/kdrive/src/kinput.c index c14dd82..a1bbcaa 100644 ---

[PATCH] Bug 38420: Xvfb crashes in miInitVisuals() when started with depth=2

2011-10-24 Thread Alan Coopersmith
From: Christopher Yeleighton giecr...@stegny.2a.pl https://bugs.freedesktop.org/show_bug.cgi?id=38420 Exit with fatal error message, not segfault. Signed-off-by: Alan Coopersmith alan.coopersm...@oracle.com Reviewed-by: Jeremy Huddleston jerem...@apple.com --- hw/vfb/InitOutput.c |2 ++ 1

Re: [PATCH:libXfont 3/4] Fix printf warnings about incorrect argument types

2011-10-24 Thread Alan Coopersmith
On 10/24/11 12:12, Julien Cristau wrote: On Sun, Oct 23, 2011 at 16:53:59 -0700, Jeremy Huddleston wrote: Why not change the format string to use %ld for sizeof() instead of casting? That would be %zu. Which I don't think we've started using yet in Xorg, since we've assumed more about the

[PATCH] xfree86: reduce calls to input_option_get_key/value

2011-10-24 Thread Peter Hutterer
No functional changes. Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- hw/xfree86/common/xf86Xinput.c | 21 - 1 files changed, 12 insertions(+), 9 deletions(-) diff --git a/hw/xfree86/common/xf86Xinput.c b/hw/xfree86/common/xf86Xinput.c index 425b359..ee705a4

Re: [PATCH] Bug 38420: Xvfb crashes in miInitVisuals() when started with depth=2

2011-10-24 Thread Keith Packard
On Mon, 24 Oct 2011 18:47:06 -0700, Alan Coopersmith alan.coopersm...@oracle.com wrote: From: Christopher Yeleighton giecr...@stegny.2a.pl https://bugs.freedesktop.org/show_bug.cgi?id=38420 Exit with fatal error message, not segfault. Merged. d9d3a01..7d50211 master - master --

Re: [PATCH] kdrive: switch to new InputOption API.

2011-10-24 Thread Keith Packard
On Tue, 25 Oct 2011 11:41:57 +1000, Peter Hutterer peter.hutte...@who-t.net wrote: tam_key = (strchr(string, '=') - string); -newopt-key = (char *)malloc(tam_key); -strncpy(newopt-key, string, tam_key); -newopt-key[tam_key] = '\0'; -newopt-value =

Re: [PATCH] kdrive: switch to new InputOption API.

2011-10-24 Thread Jeremy Huddleston
On Oct 24, 2011, at 7:05 PM, Keith Packard wrote: And, do we allow the use of strndup in the server? Alan just asked that a few days ago ;). I wouldn't be against using strndup, but there would need to be an in-tree implementation provided for systems that lack it (like OSX 10.6 and prior)

[PATCH] kdrive: check for null memory, fix OOB

2011-10-24 Thread Peter Hutterer
If key/value allocation failed, don't bother adding another InputOption. And make sure the memory allocated is large enough for the trailing \0 Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- hw/kdrive/src/kinput.c |8 +++- 1 files changed, 7 insertions(+), 1 deletions(-)

[PATCH libX11] Add _XGetRequest as substitute for GetReq/GetReqExtra

2011-10-24 Thread Peter Hutterer
Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- include/X11/Xlibint.h | 51 src/XlibInt.c | 26 + 2 files changed, 43 insertions(+), 34 deletions(-) diff --git a/include/X11/Xlibint.h

[PATCH] Remove a couple Error() instances left behind by 09dbfcb0ad7b6c8

2011-10-24 Thread Alan Coopersmith
Two instances found in the SIOCGIFCONF code for listing network interfaces. Signed-off-by: Alan Coopersmith alan.coopersm...@oracle.com --- os/access.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/os/access.c b/os/access.c index b7b1927..f31626d 100644 ---

Re: [PATCH] Remove a couple Error() instances left behind by 09dbfcb0ad7b6c8

2011-10-24 Thread Jeremy Huddleston
Thanks. Sorry for missing those. Reviewed-by: Jeremy Huddleston jerem...@apple.com On Oct 24, 2011, at 8:41 PM, Alan Coopersmith wrote: Two instances found in the SIOCGIFCONF code for listing network interfaces. Signed-off-by: Alan Coopersmith alan.coopersm...@oracle.com --- os/access.c

Re: [PATCH] Remove a couple Error() instances left behind by 09dbfcb0ad7b6c8

2011-10-24 Thread Peter Hutterer
On Mon, Oct 24, 2011 at 08:41:56PM -0700, Alan Coopersmith wrote: Two instances found in the SIOCGIFCONF code for listing network interfaces. Signed-off-by: Alan Coopersmith alan.coopersm...@oracle.com Reviewed-by: Peter Hutterer peter.hutte...@who-t.net Cheers, Peter --- os/access.c |

[PULL v2] device changed events, input device init fixes

2011-10-24 Thread Peter Hutterer
Updated to fix the kdrive compilation issue. and a few patches on top for test cases, fp3232 etc. I've pushed the kdrive fix down before the InputOption rec so the server stays bisectable Commit a41214bc9a0f326c6dc129e4a6382efb8b826862 The following changes since commit

Re: [PULL] device changed events, input device init fixes

2011-10-24 Thread Keith Packard
On Fri, 21 Oct 2011 11:08:17 +1000, Peter Hutterer peter.hutte...@who-t.net wrote: Andreas Wettstein (1): xkb: Support noLock and noUnlock flags for LockMods Peter Hutterer (12): input: switch InputOption to use XF86OptionRec storage. xfree86: use xf86AddNewOption