Re: [PATCH xinput 1/2] Centralise supported major/minor version.

2011-10-26 Thread Julien Cristau
On Wed, Oct 26, 2011 at 08:13:32 +1000, Peter Hutterer wrote: Only have one location where the currently supported major/minor version is listed. Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- src/list.c |9 +++-- src/xinput.c |8 ++-- 2 files changed, 13

Re: [PATCH xinput 1/2] Centralise supported major/minor version.

2011-10-26 Thread walter harms
Am 26.10.2011 00:13, schrieb Peter Hutterer: Only have one location where the currently supported major/minor version is listed. Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- src/list.c |9 +++-- src/xinput.c |8 ++-- 2 files changed, 13 insertions(+), 4

Re: [PATCH xinput 2/2] We support XI 2.1 now

2011-10-26 Thread Daniel Stone
Hi, On 25 October 2011 23:14, Peter Hutterer peter.hutte...@who-t.net wrote: @@ -28,7 +28,12 @@  int xi_opcode;  #if HAVE_XI2  int xi2_supported_major = 2; -int xi2_supported_minor = 0; +int xi2_supported_minor = +#if HAVE_XI21 +                        1; +#else +                        

[PATCH 1/2] xserver: Use constants for matching modes and make xf86MatchGroup a list

2011-10-26 Thread Oleh Nykyforchyn
xserver: Use constants for matching modes and make xf86MatchGroup a list Make a match group a list of patterns instead of an array of string, to unify with other structures in the parser, to prepare for introduction of regular expression in Match* statements, and to keep a matching mode field in

[PATCH 2/2] xserver: Use extended regular expressions in Match entries

2011-10-26 Thread Oleh Nykyforchyn
xserver: Use extended regular expressions in Match entries Together with simple matching modes (via strcmp() or fnmatch() etc), which are natural for different types on input device attributes, it will be allowed to match against extended regular expressions (cf. man 7 regex). For example, an

Re: Syntax enhancements for Match statements

2011-10-26 Thread Oleh Nykyforchyn
On Tue, 25 Oct 2011 10:36:54 +1000 Peter Hutterer peter.hutte...@who-t.net wrote: right, looking at this configuration I've got a few comments, but the main one is that at least for your config negations aren't really necessary. Section InputClass Identifier evdev pointer

[PATCH 1/2] xserver: Use constants for matching modes and make xf86MatchGroup a list

2011-10-26 Thread Oleh Nykyforchyn
Sorry, in the previous message two patches were occasionally sent: new (first half of the text) and old (second half). Here is only the correct version. xserver: Use constants for matching modes and make xf86MatchGroup a list Make a match group a list of patterns instead of an array of string,

Changes causes application

2011-10-26 Thread Ratin
Hi I have an X11 based application that renders video on the monitor upon launch, sometimes when launched, the video does not start rendering until mouse click event happens. The same code worked perfectly fine with older X Org server version (1.6) - only started happening with recent update to

Re: [PATCH xinput 1/2] Centralise supported major/minor version.

2011-10-26 Thread Alan Coopersmith
On 10/26/11 02:03, walter harms wrote: I do not know how the version code handling is done with Xorg. In most cases it is done like this example from linux/version.h That would reduce the _major,_minor to a simple _version. X protocol extensions have been encoding major,minor as two separate

OT: hacker public radio shows

2011-10-26 Thread Matt Dew
Hi all, Some of you know about hackerpublicradio.org. For those that don't it's basically what the name says: public radio for hackers. Anyone can record and submit and episode and the only requirement is that the subject matter is geek oriented. Some submitters are really, really good,

[PULL] Fix byte swapping in XWin and XQuartz event notifications

2011-10-26 Thread Jeremy Huddleston
The following changes since commit 5701ab4a441eb113abd0851b0d71b82d12112854: Merge remote-tracking branch 'whot/for-keith' (2011-10-24 22:09:00 -0700) are available in the git repository at: git://people.freedesktop.org/~jeremyhu/xserver master Jeremy Huddleston (3): XQuartz:

[PATCH xinput v2 1/2] list: drop XIQueryVersion call

2011-10-26 Thread Peter Hutterer
main() calls it for us before we get here, no need to have it twice. Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- Changes to v1: - drop Centralise supported major/minor version, it's not needed after this change src/list.c |9 - 1 files changed, 0 insertions(+), 9

[PATCH xinput v2 2/2] We support XI 2.1 now

2011-10-26 Thread Peter Hutterer
Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- Changes to v1: - moved to the only spot we have maj/min defined now - make it easier to read src/xinput.c |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/src/xinput.c b/src/xinput.c index 432cffc..1ed0c8c

[PATCH] Xi: allow passive keygrabs on the XIAll(Master)Devices fake devices

2011-10-26 Thread Peter Hutterer
They don't have a KeyClassRec, but we must still allow passive grabs on them. Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- Xi/exevents.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/Xi/exevents.c b/Xi/exevents.c index 053c76f..edf2c39 100644 ---

[PATCH libXi] man: passive grabs return the number of failed modifier combinations

2011-10-26 Thread Peter Hutterer
Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- man/XIGrabButton.txt | 10 +- man/XIGrabEnter.txt | 10 +- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/man/XIGrabButton.txt b/man/XIGrabButton.txt index 2ff0b50..3b5f953 100644 ---

Re: [PATCH] xfree86: reduce calls to input_option_get_key/value

2011-10-26 Thread Dan Nicholson
On Oct 24, 2011 7:00 PM, Peter Hutterer peter.hutte...@who-t.net wrote: No functional changes. Signed-off-by: Peter Hutterer peter.hutte...@who-t.net Nice cleanup. Reviewed-by: Dan Nicholson dbn.li...@gmail.com ___ xorg-devel@lists.x.org: X.Org

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

2011-10-26 Thread Peter Hutterer
Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- Changes to v1: - a few comment fixes, whitespace fixes to better align the code with the rest of the file - Warning added to _XGetRequest - typecast added to _XGetRequest usage from macros include/X11/Xlibint.h | 49

[PATCH libX11 2/4] Switch GetEmptyReq and GetResReq to call _XGetRequest

2011-10-26 Thread Peter Hutterer
Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- I just left this one as separate patch for easier reviewing, will squash in with the 1/4 _XGetRequest patch before pushing. include/X11/Xlibint.h | 40 ++-- 1 files changed, 6 insertions(+), 34

[PATCH libX11 3/4] include: Add GetReqSized() for request buffers of specific size

2011-10-26 Thread Peter Hutterer
Some XI2 requests change in size over different versions and libXi would need to hack around GetReq and GetReqExtra. Add a new GetReqSized so the library can explicitly specify the size of the request in 4-byte units. Signed-off-by: Peter Hutterer peter.hutte...@who-t.net ---

[PATCH libX11 4/4] Use GetReqSized for GetReq and GetReqExtra

2011-10-26 Thread Peter Hutterer
GetEmptyReq and GetResReq cannot do this due to the final typecast - typically requests that need either of those do not have their own typedef in the protocol headers. Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- include/X11/Xlibint.h |8 1 files changed, 4