Re: [PATCH 00/13] Clean up text protocol and move to wayland

2013-02-19 Thread Michael Hasselmann
On Tue, 2013-02-19 at 23:31 +0200, Pekka Vuorela wrote: > On 19.02.2013 22:11, Jan Arne Petersen wrote: > > With this series we try to get the text protocol into Wayland (so it can > > be supported by toolkits). The input-method protocol for input methods > > is not ready yet and will be included i

Cursor configuration

2013-02-19 Thread MoD
I noticed the other day that the documentation on cursor theming under Wayland is pretty confusing and was unable to gather a clear idea of how users are supposed to configure cursor sizes and themes from the documents I read. Here's what I encountered. man weston states: > "[Weston] has also i

[PATCH wayland 4/7 v3] Add support for custom dispatchers

2013-02-19 Thread Jason Ekstrand
Signed-off-by: Jason Ekstrand --- This version contains the documentation changes as requested by Pekka Paalanen as well as the if-statement change suggested by Bill Spitzak. src/connection.c| 15 + src/wayland-client.c| 13 +-- src/wayland-private.h | 3 ++-

[PATCH 1/2] compositor: Make sure surface->transform.matrix, inverse are always valid

2013-02-19 Thread Kristian Høgsberg
First step towards getting rid of the transform.enabled optimization. --- src/compositor.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/src/compositor.c b/src/compositor.c index 64d0830..07b95a9 100644 --- a/src/compositor.c +++ b/src/compositor.c @@ -520,6 +520,17 @@ weston_su

Re: [PATCH 00/13] Clean up text protocol and move to wayland

2013-02-19 Thread Pekka Vuorela
On 19.02.2013 22:11, Jan Arne Petersen wrote: On 19.02.2013 20:01, Yichao Yu wrote: On Tue, Feb 19, 2013 at 1:26 PM, Jan Arne Petersen wrote: From: Jan Arne Petersen This series finalizes the first version of the text protocol and moves it from Weston to Wayland, so that it can be implemente

[PATCH] shell: grab the parent popup when a sub popup window is deleted or hidden

2013-02-19 Thread Giulio Camuffo
If the client opens a popup menu and submenu, when it closes or hides the submenu the pointer grab should return to the parent menu. Furthermore, when clicking outside the client area the popup_done event is sent to the active popup surface and recursively to its parent. --- src/shell.c | 55 +

[PATCH 1/2] compositor: call configure on surfaces with a null buffer too

2013-02-19 Thread Giulio Camuffo
This way the shell can know when a surface has been unmapped by checking the value of pending.remove_content. The configure handlers must now make sure that the buffer exist though, by checking if the surface's buffer_ref.buffer is NULL. --- src/compositor.c | 2 +- src/shell.c | 33

[PATCH v2] shell: grab the parent popup when a sub popup window is deleted or hidden

2013-02-19 Thread Giulio Camuffo
If the client opens a popup menu and submenu, when it closes or hides the submenu the pointer grab should return to the parent menu. Furthermore, when clicking outside the client area the popup_done event is sent to the active popup surface and recursively to its parent. --- src/shell.c | 55 +

Re: [PATCH 00/13] Clean up text protocol and move to wayland

2013-02-19 Thread Yichao Yu
On Tue, Feb 19, 2013 at 3:11 PM, Jan Arne Petersen wrote: > On 19.02.2013 20:01, Yichao Yu wrote: >> On Tue, Feb 19, 2013 at 1:26 PM, Jan Arne Petersen >> wrote: >>> From: Jan Arne Petersen >>> >>> This series finalizes the first version of the text protocol and >>> moves it from Weston to Wayla

Re: [PATCH 00/13] Clean up text protocol and move to wayland

2013-02-19 Thread Jan Arne Petersen
On 19.02.2013 20:01, Yichao Yu wrote: > On Tue, Feb 19, 2013 at 1:26 PM, Jan Arne Petersen > wrote: >> From: Jan Arne Petersen >> >> This series finalizes the first version of the text protocol and >> moves it from Weston to Wayland, so that it can be implemented in >> toolkits. > > Well, the on

[PATCH 2/2] shell: grab the parent popup when a sub popup window is deleted or hidden

2013-02-19 Thread Giulio Camuffo
If the client opens a popup menu and submenu, when it closes or hides the submenu the pointer grab should return to the parent menu. --- src/shell.c | 42 +++--- 1 file changed, 39 insertions(+), 3 deletions(-) diff --git a/src/shell.c b/src/shell.c index 345ca

[PATCH 1/2] compositor: call configure on surfaces with a null buffer too

2013-02-19 Thread Giulio Camuffo
This way the shell can know when a surface has been unmapped by checking the value of pending.remove_content. The configure handlers must now make sure that the buffer exist though, by checking if the surface's buffer_ref.buffer is NULL. --- src/compositor.c | 2 +- src/shell.c | 19

Re: [PATCH 00/13] Clean up text protocol and move to wayland

2013-02-19 Thread Yichao Yu
On Tue, Feb 19, 2013 at 2:18 PM, Michael Hasselmann wrote: > On Tue, 2013-02-19 at 14:01 -0500, Yichao Yu wrote: >> On Tue, Feb 19, 2013 at 1:26 PM, Jan Arne Petersen >> wrote: >> > From: Jan Arne Petersen >> > >> > This series finalizes the first version of the text protocol and >> > moves it f

Re: [PATCH 00/13] Clean up text protocol and move to wayland

2013-02-19 Thread Michael Hasselmann
On Tue, 2013-02-19 at 14:01 -0500, Yichao Yu wrote: > On Tue, Feb 19, 2013 at 1:26 PM, Jan Arne Petersen > wrote: > > From: Jan Arne Petersen > > > > This series finalizes the first version of the text protocol and > > moves it from Weston to Wayland, so that it can be implemented in > > toolkits

Re: [PATCH 00/13] Clean up text protocol and move to wayland

2013-02-19 Thread Yichao Yu
On Tue, Feb 19, 2013 at 1:26 PM, Jan Arne Petersen wrote: > From: Jan Arne Petersen > > This series finalizes the first version of the text protocol and > moves it from Weston to Wayland, so that it can be implemented in > toolkits. Well, the only problem is that this protocol is totally not usa

Re: [PATCH 08/13] view: g_type_init() is deprecated in glib >= 2.35

2013-02-19 Thread Yichao Yu
On Tue, Feb 19, 2013 at 1:27 PM, Jan Arne Petersen wrote: > From: Jan Arne Petersen > > Signed-off-by: Jan Arne Petersen > --- > clients/view.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/clients/view.c b/clients/view.c > index 1bb9b9b..bfad897 100644 > --- a/clients/view.c > +++

[PATCH] protocol: Add wl_text_input interface

2013-02-19 Thread Jan Arne Petersen
From: Jan Arne Petersen wl_text_input objects are used for text input. They add support for text input and input methods to applications. A text-input object is created from a wl_text_input_manager and corresponds typically to a text entry in an application. Signed-off-by: Jan Arne Petersen ---

[PATCH 13/13] text: Move text protocol to wayland

2013-02-19 Thread Jan Arne Petersen
From: Jan Arne Petersen Signed-off-by: Jan Arne Petersen --- clients/Makefile.am | 6 +- clients/editor.c | 89 +++--- clients/keyboard.c | 11 +- protocol/Makefile.am | 1 - protocol/text.xml| 330 --- src/Makefile.am

[PATCH 11/13] text: Rename text_model to text_input

2013-02-19 Thread Jan Arne Petersen
From: Jan Arne Petersen Also rename text_model_factory to text_input_manager. Signed-off-by: Jan Arne Petersen --- clients/editor.c | 142 +++ clients/keyboard.c | 10 +-- protocol/text.xml | 61 +++--- src/text-backend.c | 242 +

[PATCH 12/13] text: Add "none" preedit-style

2013-02-19 Thread Jan Arne Petersen
From: Jan Arne Petersen Use "default" preedit style as default. "None" is used when the composing text should look like non-composing text. Signed-off-by: Jan Arne Petersen --- clients/keyboard.c | 2 +- protocol/text.xml | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a

[PATCH 10/13] text: Order requests and events in a nice way

2013-02-19 Thread Jan Arne Petersen
From: Jan Arne Petersen Signed-off-by: Jan Arne Petersen --- clients/editor.c | 14 ++--- protocol/text.xml | 172 ++--- src/text-backend.c | 24 tests/text-test.c | 14 ++--- 4 files changed, 112 insertions(+), 112 deletions(-) d

[PATCH 09/13] text: rename text_model::commit to commit_state

2013-02-19 Thread Jan Arne Petersen
From: Jan Arne Petersen Use ::commit_state as a request name to make clear what is commited. Signed-off-by: Jan Arne Petersen --- clients/editor.c | 2 +- protocol/text.xml | 2 +- src/text-backend.c | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/clients/editor.c

[PATCH 08/13] view: g_type_init() is deprecated in glib >= 2.35

2013-02-19 Thread Jan Arne Petersen
From: Jan Arne Petersen Signed-off-by: Jan Arne Petersen --- clients/view.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/clients/view.c b/clients/view.c index 1bb9b9b..bfad897 100644 --- a/clients/view.c +++ b/clients/view.c @@ -293,7 +293,9 @@ main(int argc, char *argv[]) int

[PATCH 05/13] editor: Reset text model on reset

2013-02-19 Thread Jan Arne Petersen
From: Jan Arne Petersen There were some reset calls missing, which resulted in wrong preedit state on input method side. Signed-off-by: Jan Arne Petersen --- clients/editor.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/clients/editor.c b/clients/editor.c index 7a

[PATCH 07/13] text: Fix some text and input-method docs

2013-02-19 Thread Jan Arne Petersen
From: Krzesimir Nowak Signed-off-by: Jan Arne Petersen --- protocol/input-method.xml | 40 +++- protocol/text.xml | 36 +++- 2 files changed, 46 insertions(+), 30 deletions(-) diff --git a/protocol/input-method.xml b/p

[PATCH 06/13] text: Fix password content hint value

2013-02-19 Thread Jan Arne Petersen
From: Krzesimir Nowak 0xc in this case was a combination of "autocapitalization" (0x4) and "lowercase" (0x8) instead of "hidden_text" (0x40) and "sensitive_data" (0x80). Signed-off-by: Jan Arne Petersen --- protocol/text.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p

[PATCH 04/13] keyboard: Reset state on activate

2013-02-19 Thread Jan Arne Petersen
From: Jan Arne Petersen Signed-off-by: Jan Arne Petersen --- clients/keyboard.c | 34 -- 1 file changed, 28 insertions(+), 6 deletions(-) diff --git a/clients/keyboard.c b/clients/keyboard.c index 824db34..303b608 100644 --- a/clients/keyboard.c +++ b/clients/ke

[PATCH 03/13] text: Add example for language/text direction

2013-02-19 Thread Jan Arne Petersen
From: Jan Arne Petersen Signed-off-by: Jan Arne Petersen --- clients/editor.c | 36 +- clients/keyboard.c | 89 -- 2 files changed, 121 insertions(+), 4 deletions(-) diff --git a/clients/editor.c b/clients/editor.c index

[PATCH 02/13] text: Add language and text-direction to protocol

2013-02-19 Thread Jan Arne Petersen
From: Jan Arne Petersen Signed-off-by: Jan Arne Petersen --- clients/editor.c | 20 - clients/keyboard.c | 54 ++ clients/weston-simple-im.c | 54 ++ protocol/input-method.x

[PATCH 01/13] tests: Fix text-test

2013-02-19 Thread Jan Arne Petersen
From: Jan Arne Petersen Updated to changed text protocol. Signed-off-by: Jan Arne Petersen --- tests/text-test.c | 68 --- 1 file changed, 40 insertions(+), 28 deletions(-) diff --git a/tests/text-test.c b/tests/text-test.c index 8994d10..f5

[PATCH 00/13] Clean up text protocol and move to wayland

2013-02-19 Thread Jan Arne Petersen
From: Jan Arne Petersen This series finalizes the first version of the text protocol and moves it from Weston to Wayland, so that it can be implemented in toolkits. It adds the missing language/text-direction support to the protocol. text_model gets renamed to wl_text_input, text_model_factory

Re: [PATCH weston 2/2] compositor-drm: Fix inconsistency in finish frame timestamps

2013-02-19 Thread Bill Spitzak
On 02/19/2013 03:16 AM, Pekka Paalanen wrote: http://blog.fishsoup.net/2012/11/28/avoiding-jitter-in-composited-frame-display/ That is really interesting but I think his first solution is what is needed, combined with multiple buffering, which in Wayland is done by the client. In this diag

Re: [PATCH wayland 4/7] Add support for custom dispatchers

2013-02-19 Thread Jason Ekstrand
On Tue, Feb 19, 2013 at 2:22 AM, Pekka Paalanen wrote: > On Mon, 18 Feb 2013 10:03:25 -0600 > Jason Ekstrand wrote: > >> >> Signed-off-by: Jason Ekstrand >> --- >> src/connection.c| 15 + >> src/wayland-client.c| 13 +-- >> src/wayland-private.h | 3 ++- >> sr

Re: [PATCH] Install protocol XML files in $(datadir)/wayland

2013-02-19 Thread Quentin Glidic
On 19/02/2013 11:31, Pekka Paalanen wrote: > On Mon, 18 Feb 2013 17:10:28 -0500 Kristian Høgsberg > wrote: > >> This installs the protocol XML under $(datadir)/wayland. The >> intention is that this directory is a shared location for all >> protocol files and as such we'll need to prefix our

Re: [PATCH weston 2/2] compositor-drm: Fix inconsistency in finish frame timestamps

2013-02-19 Thread Pekka Paalanen
On Tue, 19 Feb 2013 12:17:48 +0200 Ander Conselvan de Oliveira wrote: > On 02/15/2013 10:27 AM, Pekka Paalanen wrote: > > On Thu, 14 Feb 2013 11:51:15 -0500 > > Kristian Høgsberg wrote: > > > >> On Wed, Feb 13, 2013 at 04:06:38PM +0200, Ander Conselvan de Oliveira > >> wrote: > >>> The page fli

Re: [PATCH] Install protocol XML files in $(datadir)/wayland

2013-02-19 Thread Daniel Stone
Hi, On 19 February 2013 10:31, Pekka Paalanen wrote: > it's nice to start on this. > Aye, sounds good to me. > Should we standardise on always using just $(datadir)/wayland, or > should libwayland define the directory in its .pc file? I guess > libwayland cannot do that, because then you cou

Re: [PATCH weston 2/2] compositor-drm: Fix inconsistency in finish frame timestamps

2013-02-19 Thread Daniel Stone
Hi, On 19 February 2013 10:17, Ander Conselvan de Oliveira wrote: > That's a tricky one. I agree that the timestamp of a frame callback does > not represent the moment the last attached buffer reached the screen. But > the timestamp is that of the latest completed flip. > > The protocol descript

Re: [PATCH] Install protocol XML files in $(datadir)/wayland

2013-02-19 Thread Pekka Paalanen
On Mon, 18 Feb 2013 17:10:28 -0500 Kristian Høgsberg wrote: > This installs the protocol XML under $(datadir)/wayland. The intention > is that this directory is a shared location for all protocol files and > as such we'll need to prefix our filenames with weston to avoid clashing. > > https://b

Re: [PATCH weston 2/2] compositor-drm: Fix inconsistency in finish frame timestamps

2013-02-19 Thread Ander Conselvan de Oliveira
On 02/15/2013 10:27 AM, Pekka Paalanen wrote: On Thu, 14 Feb 2013 11:51:15 -0500 Kristian Høgsberg wrote: On Wed, Feb 13, 2013 at 04:06:38PM +0200, Ander Conselvan de Oliveira wrote: The page flip event timestamps comes from the monotonic clock, while idle_repaint() gets the time with gettime

RE: Testing the Wayland backend for Dolphin-Emu

2013-02-19 Thread 小龙 陈
It turns out that the X11 issues with EGL happened because I didn't set LIBGL_DRIVERS_PATH and LD_LIBRARY_PATH to where mesa git was installed. Thanks to Scott for pointing this out! So, with the environment set up properly, X11 + EGL works fine now. It's slower than Wayland + EGL: Windowed (640x

Re: [PATCH wayland 4/7] Add support for custom dispatchers

2013-02-19 Thread Pekka Paalanen
On Mon, 18 Feb 2013 10:03:25 -0600 Jason Ekstrand wrote: > > Signed-off-by: Jason Ekstrand > --- > src/connection.c| 15 + > src/wayland-client.c| 13 +-- > src/wayland-private.h | 3 ++- > src/wayland-server.c| 9 +++- > src/wayland-util.h | 27