Re: Seats support

2013-04-18 Thread Pekka Paalanen
On Thu, 18 Apr 2013 19:36:55 -0500 Jason Ekstrand wrote: > Singh, > On Thu, Apr 18, 2013 at 12:35 PM, Singh, Satyeshwar < > satyeshwar.si...@intel.com> wrote: > > > Hi Jason, > > > > > As of right now, weston doesn't have a way (as far as I know) to > > > split your devices into multiple seats.

Re: Trying to understand how to show a surface

2013-04-18 Thread Ander Conselvan de Oliveira
On 04/19/2013 04:57 AM, João Jerónimo wrote: Em 19-04-2013 01:52, dar...@chaosreigns.com escreveu: Might be useful to post the code. Ok. I'll post it then. I'm linking only the wayland libraries. One also needs to use the -std=gnu++11 flag. [...] int main() { try { printf("He

Re: Trying to understand how to show a surface

2013-04-18 Thread João Jerónimo
Em 19-04-2013 01:52, dar...@chaosreigns.com escreveu: Might be useful to post the code. Ok. I'll post it then. I'm linking only the wayland libraries. One also needs to use the -std=gnu++11 flag. #include #include #include #include #include #include #include #include #include #inclu

Trying to understand how to display a surface

2013-04-18 Thread João Jerónimo
Hello. I was trying to understand what is the minimal code needed to get a square painter on the screen. However, although I can make the client talk to the Weston compositor, enumerate the global objects, etc, I can't still see my surface drawn in the compositor scene. The steps that my pro

Re: Seats support

2013-04-18 Thread Jason Ekstrand
Singh, On Thu, Apr 18, 2013 at 12:35 PM, Singh, Satyeshwar < satyeshwar.si...@intel.com> wrote: > Hi Jason, > > > As of right now, weston doesn't have a way (as far as I know) to split > > your devices into multiple seats. Then again, I don't really see why > > you would want to unless you plan t

Re: Input and games.

2013-04-18 Thread Todd Showalter
On Thu, Apr 18, 2013 at 5:29 PM, Jonas Kulla wrote: > What exactly do you mean by "unique requirements", can you be a little > bit more specific? In general I think the current consensus (correct me if > I'm wrong) is that using the default wayland pointer and keyboard events > plus Joypad suppor

Re: Input and games.

2013-04-18 Thread Jonas Kulla
2013/4/18 Todd Showalter > I'm a game developer, and we're hoping to have our games working > properly with Wayland. Input is a particular point of interest for > me. The traditional desktop input model is what tends to drive input > interfaces, but games have somewhat unique requirements th

Re: [UPDATED PATCH wayland] protocol: Add a request and event to identify the visible area for a surface

2013-04-18 Thread Bill Spitzak
Rob Bradford wrote: From: Rob Bradford Add a probe_area request to the wl_shell_surface interface along with a visible_area event to communicate the result of the probe. The intention of this request and event is to allow the client to try and refine the placement of popup windows that would

Input and games.

2013-04-18 Thread Todd Showalter
I'm a game developer, and we're hoping to have our games working properly with Wayland. Input is a particular point of interest for me. The traditional desktop input model is what tends to drive input interfaces, but games have somewhat unique requirements that at times mesh badly with the sta

Re: [PATCH] protocol: revert hotspot_x/y in set_cursor back to int

2013-04-18 Thread Kristian Høgsberg
On Thu, Apr 18, 2013 at 06:33:01AM +1000, Peter Hutterer wrote: > copy/paste error introduced in 9c0357af6ee42c318ce37b458ae7bdb7d51316cb > > Signed-off-by: Peter Hutterer > --- > sorry. No worries, I should've caught this when reviewing... Nothing broke on the wire or in the code, both fixed a

Re: [PATCH wayland] protocol: Make it clear that returned "one-shot" objects are destroyed

2013-04-18 Thread Kristian Høgsberg
On Wed, Apr 17, 2013 at 06:28:42PM +0100, Rob Bradford wrote: > From: Rob Bradford > > The objects returned by the frame and sync request are destroyed by the > compositor after the "done" event on the wl_callback interface is fired. > --- > protocol/wayland.xml | 8 > 1 file changed, 8

RE: Seats support

2013-04-18 Thread Singh, Satyeshwar
Hi Jason, > As of right now, weston doesn't have a way (as far as I know) to split > your devices into multiple seats. Then again, I don't really see why > you would want to unless you plan to have two people working on the > same computer simultaneously (I guess that's a possibility). In a car,

[PATCH v2 25/28] text: Rename input_method to wl_input_method

2013-04-18 Thread Jan Arne Petersen
From: Jan Arne Petersen Also rename input_method_context to wl_input_method_context, input_panel to wl_input_panel and input_panel_surface to wl_input_panel_surface. Signed-off-by: Jan Arne Petersen --- clients/keyboard.c | 162 ++--- clients/wes

[PATCH v2 28/28] editor: Fix some offsets for multi-byte characters

2013-04-18 Thread Jan Arne Petersen
From: Jan Arne Petersen Signed-off-by: Jan Arne Petersen --- clients/editor.c | 100 ++- 1 file changed, 48 insertions(+), 52 deletions(-) diff --git a/clients/editor.c b/clients/editor.c index f6e6084..7c90ed9 100644 --- a/clients/editor.c +

[PATCH v2 27/28] keyboard: Fix offsets when deleting text

2013-04-18 Thread Jan Arne Petersen
From: Jan Arne Petersen Signed-off-by: Jan Arne Petersen --- clients/keyboard.c | 90 +++--- 1 file changed, 85 insertions(+), 5 deletions(-) diff --git a/clients/keyboard.c b/clients/keyboard.c index d83ca3c..a2fbded 100644 --- a/clients/keyboar

[PATCH v2 24/28] text: Improve protocol documentation.

2013-04-18 Thread Jan Arne Petersen
From: Jan Arne Petersen Signed-off-by: Jan Arne Petersen --- protocol/input-method.xml | 98 +++ protocol/text.xml | 52 - 2 files changed, 106 insertions(+), 44 deletions(-) diff --git a/protocol/input-method.xml b/pr

[PATCH v2 26/28] text: add cursor_rectangle event to input_panel_surface

2013-04-18 Thread Jan Arne Petersen
From: Jan Arne Petersen Signed-off-by: Jan Arne Petersen --- protocol/input-method.xml | 10 ++ src/input-panel.c | 37 - 2 files changed, 34 insertions(+), 13 deletions(-) diff --git a/protocol/input-method.xml b/protocol/input-method.xml in

[PATCH v2 22/28] text: Rename text_input to wl_text_input

2013-04-18 Thread Jan Arne Petersen
From: Jan Arne Petersen Signed-off-by: Jan Arne Petersen --- clients/editor.c | 118 ++--- clients/keyboard.c | 10 ++--- protocol/text.xml | 8 ++-- src/control.c | 2 +- src/text-backend.c | 34 +++ tests/text-test.c |

[PATCH v2 23/28] text: Rename ::set_panel to ::set_overlay_panel

2013-04-18 Thread Jan Arne Petersen
From: Jan Arne Petersen Also add documentation to input_panel_surface::set_overlay_panel. Signed-off-by: Jan Arne Petersen --- protocol/input-method.xml | 8 ++-- src/input-panel.c | 6 +++--- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/protocol/input-method.xml

[PATCH v2 21/28] keyboard: Remove unneded calls

2013-04-18 Thread Jan Arne Petersen
From: Jan Arne Petersen Signed-off-by: Jan Arne Petersen --- clients/keyboard.c | 16 1 file changed, 16 deletions(-) diff --git a/clients/keyboard.c b/clients/keyboard.c index bd88207..4fc8e73 100644 --- a/clients/keyboard.c +++ b/clients/keyboard.c @@ -387,13 +387,6 @@ virtu

[PATCH v2 19/28] text: Fix serial handling

2013-04-18 Thread Jan Arne Petersen
From: Jan Arne Petersen Signed-off-by: Jan Arne Petersen --- clients/editor.c | 24 ++-- clients/keyboard.c | 23 +-- clients/weston-simple-im.c | 28 +++- protocol/input-method.xml | 17 ++--- protoc

[PATCH v2 18/28] Add weston-control to allow reloading the config file

2013-04-18 Thread Jan Arne Petersen
From: Jan Arne Petersen Signed-off-by: Jan Arne Petersen --- clients/.gitignore | 3 ++ clients/Makefile.am | 9 + clients/weston-control.c | 101 +++ protocol/Makefile.am | 1 + protocol/control.xml | 35

[PATCH v2 16/28] text: Move input panel into an own file

2013-04-18 Thread Jan Arne Petersen
From: Jan Arne Petersen Signed-off-by: Jan Arne Petersen --- src/Makefile.am | 3 +- src/compositor.c | 1 + src/compositor.h | 13 ++ src/input-panel.c | 461 ++ src/shell.c | 350 + 5 fi

[PATCH v2 20/28] text: delete text on commit_string

2013-04-18 Thread Jan Arne Petersen
From: Jan Arne Petersen Signed-off-by: Jan Arne Petersen --- clients/editor.c | 33 +++-- clients/keyboard.c | 3 +++ 2 files changed, 22 insertions(+), 14 deletions(-) diff --git a/clients/editor.c b/clients/editor.c index c40815a..56205af 100644 --- a/clients/e

[PATCH v2 17/28] text: Only allow input-method started by weston to bind

2013-04-18 Thread Jan Arne Petersen
From: Jan Arne Petersen Signed-off-by: Jan Arne Petersen --- src/text-backend.c | 21 ++--- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/src/text-backend.c b/src/text-backend.c index 07a066c..53aa92c 100644 --- a/src/text-backend.c +++ b/src/text-backend.c @@ -

[PATCH v2 15/28] text: Add output argument to set_toplevel

2013-04-18 Thread Jan Arne Petersen
From: Jan Arne Petersen Allow to specify an output for a toplevel input panel surface. Signed-off-by: Jan Arne Petersen --- clients/keyboard.c| 26 ++ protocol/input-method.xml | 1 + src/shell.c | 28 3 files changed

[PATCH v2 14/28] text: Add support for panels following the cursor

2013-04-18 Thread Jan Arne Petersen
From: Jan Arne Petersen Add input_panel_surface::set_panel to specify input panel surfaces which are overlaying the application and are following the input cursor. Signed-off-by: Jan Arne Petersen --- protocol/input-method.xml | 3 ++ src/compositor.c | 1 + src/compositor.h

[PATCH v2 10/28] text: Rename text_model to text_input

2013-04-18 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 v2 12/28] editor: Only delete on backspace key released

2013-04-18 Thread Jan Arne Petersen
From: Jan Arne Petersen Do not delete two characters when key is pressed and released. Signed-off-by: Jan Arne Petersen --- clients/editor.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/clients/editor.c b/clients/editor.c index 027b562..e686248 100644 --- a/clients/editor.c +++ b/cli

[PATCH v2 11/28] text: Add "none" preedit-style

2013-04-18 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 v2 09/28] text: Order requests and events in a nice way

2013-04-18 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 v2 13/28] editor: Send cursor position to the input method

2013-04-18 Thread Jan Arne Petersen
From: Jan Arne Petersen Signed-off-by: Jan Arne Petersen --- clients/editor.c | 38 ++ 1 file changed, 38 insertions(+) diff --git a/clients/editor.c b/clients/editor.c index e686248..e61eda0 100644 --- a/clients/editor.c +++ b/clients/editor.c @@ -127,6 +12

[PATCH v2 05/28] text: Fix password content hint value

2013-04-18 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 v2 06/28] text: Fix some text and input-method docs

2013-04-18 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 v2 08/28] text: rename text_model::commit to commit_state

2013-04-18 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 v2 07/28] view: g_type_init() is deprecated in glib >= 2.35

2013-04-18 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 c8ced15..110a829 100644 --- a/clients/view.c +++ b/clients/view.c @@ -293,7 +293,9 @@ main(int argc, char *argv[]) int

[PATCH v2 01/28] text: Add language and text-direction to protocol

2013-04-18 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 v2 00/28] Improve Text protocol

2013-04-18 Thread Jan Arne Petersen
From: Jan Arne Petersen This patch series replaces the previous "Extend text protocol for IBus support" and "Improve text protocol". All changes include: * Some cleanups from the previous text input patch series (required by the new patches) * Add support for overlay panel input panel surfaces

[PATCH v2 03/28] keyboard: Reset state on activate

2013-04-18 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 e792eba..1394d70 100644 --- a/clients/keyboard.c +++ b/clients/ke

[PATCH v2 02/28] text: Add example for language/text direction

2013-04-18 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 v2 04/28] editor: Reset text model on reset

2013-04-18 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 58

[UPDATED PATCH weston 2/2] window: Use probe area to position popup window so it always visible

2013-04-18 Thread Rob Bradford
From: Rob Bradford With this change the popup menu will not go beyond the borders of the output. --- clients/window.c | 66 +--- 1 file changed, 58 insertions(+), 8 deletions(-) diff --git a/clients/window.c b/clients/window.c index 073ce53..2

[UPDATED PATCH weston 1/2] shell: Implement the probe_area request on the shell surface

2013-04-18 Thread Rob Bradford
From: Rob Bradford Implement a basic implementation for returning the visible area in response to a probe_area request. v2: Return an object that the event is fired on rather than firing on the surface (review from Kristian) v3: Use weston_surface_{to,from}_global (review from Pekka Paalanen) v4

[UPDATED PATCH wayland] protocol: Add a request and event to identify the visible area for a surface

2013-04-18 Thread Rob Bradford
From: Rob Bradford Add a probe_area request to the wl_shell_surface interface along with a visible_area event to communicate the result of the probe. The intention of this request and event is to allow the client to try and refine the placement of popup windows that would otherwise be unusable.

Re: Clarifying scope and goals for weston

2013-04-18 Thread Pekka Paalanen
On Wed, 17 Apr 2013 16:34:19 -0400 Kristian Høgsberg wrote: > Hello list, > > A few weeks ago, Thiago Maciera sent out a good email about patch > review and how everybody can help with the review effort: > > http://lists.freedesktop.org/archives/wayland-devel/2013-March/008174.html > > I see

Re: Clarifying scope and goals for weston

2013-04-18 Thread Sam Spilsbury
On Wed, Apr 17, 2013 at 1:34 PM, Kristian Høgsberg wrote: > Hello list, Hey Kristian. Thanks for taking the time to start this discussion. I'm probably not all that qualified to make a comment here, but I will point out some ideas and observations I've had about this. > I see more reviews on th