Re: [PATCH weston] Add --version option.

2013-02-01 Thread Scott Moreau
On Wed, Aug 29, 2012 at 3:15 PM, Scott Moreau wrote: > --- > src/compositor.c | 7 +++ > 1 file changed, 7 insertions(+) > > diff --git a/src/compositor.c b/src/compositor.c > index df28cb7..42d4051 100644 > --- a/src/compositor.c > +++ b/src/compositor.c > @@ -3565,6 +3565,7 @@ int main(int

Re: Questions and thoughts about input method protocol

2013-02-01 Thread Yichao Yu
On Fri, Feb 1, 2013 at 6:36 PM, Yichao Yu wrote: > On Fri, Feb 1, 2013 at 6:15 PM, Bill Spitzak wrote: >> Will simple input methods that have no state have to do anything about this, >> or is it trivial to support? >> >> What I am wondering is if an input method that does not use the context id >

Re: Questions and thoughts about input method protocol

2013-02-01 Thread Yichao Yu
On Fri, Feb 1, 2013 at 6:15 PM, Bill Spitzak wrote: > Will simple input methods that have no state have to do anything about this, > or is it trivial to support? > > What I am wondering is if an input method that does not use the context id > for anything will still need to keep track of what cont

Re: Questions and thoughts about input method protocol

2013-02-01 Thread Bill Spitzak
Will simple input methods that have no state have to do anything about this, or is it trivial to support? What I am wondering is if an input method that does not use the context id for anything will still need to keep track of what context id's were allocated and freed? Or can it just throw th

Re: Questions and thoughts about input method protocol

2013-02-01 Thread Yichao Yu
On Fri, Feb 1, 2013 at 1:48 PM, Pekka Vuorela wrote: > On 01.02.2013 00:45, Yichao Yu wrote: >> >> On Thu, Jan 31, 2013 at 5:19 PM, Pekka Vuorela wrote: >>> >>> On 31.01.2013 02:54, Yichao Yu wrote: Hi, On Wed, Jan 30, 2013 at 4:09 PM, Pekka Vuorela wrote: > > >>> I was

Re: Questions and thoughts about input method protocol

2013-02-01 Thread Pekka Vuorela
On 01.02.2013 00:45, Yichao Yu wrote: On Thu, Jan 31, 2013 at 5:19 PM, Pekka Vuorela wrote: On 31.01.2013 02:54, Yichao Yu wrote: Hi, On Wed, Jan 30, 2013 at 4:09 PM, Pekka Vuorela wrote: I was talking about input method _automatically_ changing to one layout or another based on what was

Re: Questions and thoughts about input method protocol

2013-02-01 Thread Pekka Vuorela
On 31.01.2013 19:54, Weng Xuetian wrote: On Wednesday 30 January 2013 23:09:20,Pekka Vuorela : I would try to find better ways to achieve targeted goals. One feature I've myself been thinking is virtual keyboard used with messaging app knowing what language, or type of language, the recipient

Re: [PATCH 5/5] text: Split out cursor_position

2013-02-01 Thread Yichao Yu
On Thu, Jan 31, 2013 at 9:52 AM, Jan Arne Petersen wrote: > From: Jan Arne Petersen > > Add an extra cursor_position, which also allows to change the anchor > (for slections). Change the index type to int to allow setting it before > the beginning of a commited string. > > The cursor should not b

Alignment problem in wl_connection_demarshal()

2013-02-01 Thread Philip Withnall
Hi all, Running Weston on 64-bit MIPS, I'm coming across a non-aligned access in wl_connection_demarshal() which causes a processor trap. Around line 740 of connection.c, demarshalling an object: id = (uint32_t **) extra; extra += sizeof *id; closure->args[i] = id;

[PATCH 2/2] wayland-cursor: Introduce os-fault-handler

2013-02-01 Thread Martin Minarik
This fault handler can be used for recovery from an out of memory condition (OOM). When writing to a full mmap'ed memory, the SIGBUS signal causes the process to terminate. It can be caught and the process may decide what to do next, for example restart the computation later, or shut down and tell

[PATCH 1/2] wayland-cursor: Introduce size_t, improve error handling

2013-02-01 Thread Martin Minarik
The size_t is introduced, accomodating for the possibility of a large addres space. The error handling is improved, in particular the memory leaks are fixed. --- cursor/wayland-cursor.c | 88 +-- 1 file changed, 63 insertions(+), 25 deletions(-) diff

[PATCH 6/7] Add wl_arguments forms of wl_resource_post_event and wl_resource_queue_event

2013-02-01 Thread Jason Ekstrand
Signed-off-by: Jason Ekstrand --- src/wayland-server.c | 47 --- src/wayland-server.h | 4 2 files changed, 40 insertions(+), 11 deletions(-) diff --git a/src/wayland-server.c b/src/wayland-server.c index e45b880..dcbe0c2 100644 --- a/src/waylan

[PATCH 7/7] Test for proper usage of custom vs. default dispatchers

2013-02-01 Thread Jason Ekstrand
Signed-off-by: Jason Ekstrand --- tests/dispatcher-test.c | 66 + 1 file changed, 66 insertions(+) diff --git a/tests/dispatcher-test.c b/tests/dispatcher-test.c index 54b6a41..894f20d 100644 --- a/tests/dispatcher-test.c +++ b/tests/dispatcher-te

[PATCH 5/7] Make the scanner generate version 1 wl_interface structures

2013-02-01 Thread Jason Ekstrand
Signed-off-by: Jason Ekstrand --- src/scanner.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/scanner.c b/src/scanner.c index 6d2eddd..b3f5bf5 100644 --- a/src/scanner.c +++ b/src/scanner.c @@ -1118,7 +1118,7 @@ emit_code(struct protocol *protocol) p

[PATCH 4/7] Fill out dummy objects in tests so dispatchers will work

2013-02-01 Thread Jason Ekstrand
Signed-off-by: Jason Ekstrand --- tests/connection-test.c | 35 +-- tests/dispatcher-test.c | 3 ++- tests/os-wrappers-test.c | 11 +-- 3 files changed, 40 insertions(+), 9 deletions(-) diff --git a/tests/connection-test.c b/tests/connection-test.c ind

[PATCH 3/7] Convert wl_closure to use wl_argument and enable dispatchers

2013-02-01 Thread Jason Ekstrand
Signed-off-by: Jason Ekstrand --- src/connection.c | 343 +- src/wayland-client.c | 29 +++-- src/wayland-private.h | 14 ++- src/wayland-server.c | 22 +--- src/wayland-util.h| 26 +++- 5 files changed, 223 insertions(+), 211 deleti

[PATCH 2/7] Add a default dispatcher function and related test

2013-02-01 Thread Jason Ekstrand
Signed-off-by: Jason Ekstrand --- src/connection.c| 80 + src/wayland-private.h | 5 +++ src/wayland-util.h | 12 +++ tests/.gitignore| 1 + tests/Makefile.am | 2 ++ tests/dispatcher-test.c | 96

[PATCH 1/7] Make a #define for WL_CLOSURE_MAX_ARGS instead of a magic number.

2013-02-01 Thread Jason Ekstrand
Signed-off-by: Jason Ekstrand --- src/wayland-private.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/wayland-private.h b/src/wayland-private.h index 4ec9896..ecd7f17 100644 --- a/src/wayland-private.h +++ b/src/wayland-private.h @@ -39,6 +39,7 @@ #define WL_MAP_S

[PATCH wayland 0/7] Add support for custom dispatchers

2013-02-01 Thread Jason Ekstrand
Ths patch group contains my additions for custom dispatcher support inside libwayland. This would allow someone to handle event and resource function calling at runtime rather than through a list of function pointers and libffi. The primary use case for these modifications is to enable much more f

Re: Questions and thoughts about input method protocol

2013-02-01 Thread Yichao Yu
On Fri, Feb 1, 2013 at 9:38 AM, Pekka Paalanen wrote: > On Fri, 1 Feb 2013 08:39:08 -0500 > Yichao Yu wrote: > >> On Fri, Feb 1, 2013 at 3:21 AM, Pekka Paalanen wrote: >> > On Thu, 31 Jan 2013 17:45:25 -0500 >> > Yichao Yu wrote: >> > >> >> On Thu, Jan 31, 2013 at 5:19 PM, Pekka Vuorela wrote:

Re: Questions and thoughts about input method protocol

2013-02-01 Thread Pekka Paalanen
On Fri, 1 Feb 2013 08:39:08 -0500 Yichao Yu wrote: > On Fri, Feb 1, 2013 at 3:21 AM, Pekka Paalanen wrote: > > On Thu, 31 Jan 2013 17:45:25 -0500 > > Yichao Yu wrote: > > > >> On Thu, Jan 31, 2013 at 5:19 PM, Pekka Vuorela wrote: > >> > Problem with window titles and all is that they are infor

Re: [PATCH RFC] Add language and text-direction to text protocol

2013-02-01 Thread Yichao Yu
On Fri, Feb 1, 2013 at 8:31 AM, Jan Arne Petersen wrote: > On 01.02.2013 13:43, Yichao Yu wrote: >> On Fri, Feb 1, 2013 at 3:25 AM, Jan Arne Petersen >> wrote: >>> On 31.01.2013 23:49, Weng Xuetian wrote: On Thursday 31 January 2013 20:50:00,Jan Arne Petersen : > Currently the context is

Re: Questions and thoughts about input method protocol

2013-02-01 Thread Yichao Yu
On Fri, Feb 1, 2013 at 3:21 AM, Pekka Paalanen wrote: > On Thu, 31 Jan 2013 17:45:25 -0500 > Yichao Yu wrote: > >> On Thu, Jan 31, 2013 at 5:19 PM, Pekka Vuorela wrote: >> > Problem with window titles and all is that they are information not meant >> > to >> > input method. Those are meant for

Re: [PATCH RFC] Add language and text-direction to text protocol

2013-02-01 Thread Jan Arne Petersen
On 01.02.2013 13:43, Yichao Yu wrote: > On Fri, Feb 1, 2013 at 3:25 AM, Jan Arne Petersen > wrote: >> On 31.01.2013 23:49, Weng Xuetian wrote: >>> On Thursday 31 January 2013 20:50:00,Jan Arne Petersen : Currently the context is state-less but even when we add state there, in Qt, for exa

Re: [PATCH RFC] Add language and text-direction to text protocol

2013-02-01 Thread Jan Arne Petersen
On 01.02.2013 14:25, Yichao Yu wrote: > On Fri, Feb 1, 2013 at 8:06 AM, Jan Arne Petersen > wrote: >> On 01.02.2013 13:46, Yichao Yu wrote: >>> On Fri, Feb 1, 2013 at 3:18 AM, Jan Arne Petersen >>> wrote: On 31.01.2013 23:39, Weng Xuetian wrote: > And, IMHO, those hint should be set in a

Re: [PATCH RFC] Add language and text-direction to text protocol

2013-02-01 Thread Yichao Yu
On Fri, Feb 1, 2013 at 8:06 AM, Jan Arne Petersen wrote: > On 01.02.2013 13:46, Yichao Yu wrote: >> On Fri, Feb 1, 2013 at 3:18 AM, Jan Arne Petersen >> wrote: >>> On 31.01.2013 23:39, Weng Xuetian wrote: And, IMHO, those hint should be set in a key-value map, instead of everytime

Re: Questions and thoughts about input method protocol

2013-02-01 Thread Yichao Yu
On Fri, Feb 1, 2013 at 2:51 AM, Jan Arne Petersen wrote: > On 29.01.2013 03:49, Yichao Yu wrote: >> With the comment on the recent patches for the input method protocol, >> it seems that we are finally on the way to support cursor following. >> However I still have some questions about the protoco

Re: [PATCH RFC] Add language and text-direction to text protocol

2013-02-01 Thread Jan Arne Petersen
On 01.02.2013 13:46, Yichao Yu wrote: > On Fri, Feb 1, 2013 at 3:18 AM, Jan Arne Petersen > wrote: >> On 31.01.2013 23:39, Weng Xuetian wrote: >>> And, IMHO, those hint should be set in a key-value map, instead of everytime >>> we add some new API, hence the API would be much more flexible and eas

Re: [PATCH RFC] Add language and text-direction to text protocol

2013-02-01 Thread Yichao Yu
On Fri, Feb 1, 2013 at 3:18 AM, Jan Arne Petersen wrote: > On 31.01.2013 23:39, Weng Xuetian wrote: >> On Thursday 31 January 2013 17:44:02,Jan Arne Petersen : >>> From: Jan Arne Petersen >>> >>> The proposed API allows to send the language and text-direction for >>> inserted text from an input-m

Re: [PATCH RFC] Add language and text-direction to text protocol

2013-02-01 Thread Yichao Yu
On Fri, Feb 1, 2013 at 3:25 AM, Jan Arne Petersen wrote: > On 31.01.2013 23:49, Weng Xuetian wrote: >> On Thursday 31 January 2013 20:50:00,Jan Arne Petersen : >>> Currently the context is state-less but even when we add state there, in >>> Qt, for example, there is currently just one input contex

Re: Questions and thoughts about input method protocol

2013-02-01 Thread Jan Arne Petersen
On 01.02.2013 09:21, Pekka Paalanen wrote: > On Thu, 31 Jan 2013 17:45:25 -0500 > Yichao Yu wrote: > >> On Thu, Jan 31, 2013 at 5:19 PM, Pekka Vuorela wrote: >>> Problem with window titles and all is that they are information not meant to >>> input method. Those are meant for the user and can ch

Re: [PATCH RFC] Add language and text-direction to text protocol

2013-02-01 Thread Jan Arne Petersen
On 31.01.2013 23:49, Weng Xuetian wrote: > On Thursday 31 January 2013 20:50:00,Jan Arne Petersen : >> Currently the context is state-less but even when we add state there, in >> Qt, for example, there is currently just one input context per >> application not one per widget. > Not the per-widget c

Re: Questions and thoughts about input method protocol

2013-02-01 Thread Pekka Paalanen
On Thu, 31 Jan 2013 17:45:25 -0500 Yichao Yu wrote: > On Thu, Jan 31, 2013 at 5:19 PM, Pekka Vuorela wrote: > > Problem with window titles and all is that they are information not meant to > > input method. Those are meant for the user and can change any time and to > > anything. And using those

Re: [PATCH RFC] Add language and text-direction to text protocol

2013-02-01 Thread Jan Arne Petersen
On 31.01.2013 23:39, Weng Xuetian wrote: > On Thursday 31 January 2013 17:44:02,Jan Arne Petersen : >> From: Jan Arne Petersen >> >> The proposed API allows to send the language and text-direction for >> inserted text from an input-method to an application. >> >> It also allows an application to s

Re: [PATCH RFC] Add language and text-direction to text protocol

2013-02-01 Thread Jan Arne Petersen
On 31.01.2013 23:49, Weng Xuetian wrote: > On Thursday 31 January 2013 20:50:00,Jan Arne Petersen : >> Currently the context is state-less but even when we add state there, in >> Qt, for example, there is currently just one input context per >> application not one per widget. > Not the per-widget c