Re: Weston framerate (Re: bare bones opengl weston client sample)

2012-09-09 Thread Pekka Paalanen
On Fri, 7 Sep 2012 20:48:17 -0400 jegde jedge wrote: > Sorry for the delay, my mail tool didn't link up this thread fro me. > > I am running w/ DRM not X11; running weston in an X client was not > adequate for my test app. > I start by obtaining a virtual terminal ;init 3 ; then weston-launch >

[PATCH] Wayland X server uses xwayand.conf instead of xorg.conf, and xwayland.conf.d instead of xorg.conf.d.

2012-09-09 Thread spitzak
From: Bill Spitzak This allows X applications to be run on wayland without having to delete conf files needed to run the legacy X server on the same machine. The --config and --configdir switches can override these changes. An extra patch to xorg was needed, as it *always* looked for xorg.conf.

[PATCH v2 16/17] text: Add support for control keys to the protocol

2012-09-09 Thread Jan Arne Petersen
From: Jan Arne Petersen Add key event to the text_model interface and a key request to the input_method_context interface. Implement it in the example editor client and the example keyboard. Signed-off-by: Jan Arne Petersen --- clients/editor.c | 25 - clients/

[PATCH v2 17/17] text: Add reset requets to protocol

2012-09-09 Thread Jan Arne Petersen
From: Jan Arne Petersen Add a reset request to the text_model interface and a reset event to the input_method_context interface. Use it to reset the pre-edit buffers in the example keyboard when the cursor is moved in the example editor client. Signed-off-by: Jan Arne Petersen --- clients/edit

[PATCH v2 15/17] text: Add delete_surrounding_text to protocol

2012-09-09 Thread Jan Arne Petersen
From: Jan Arne Petersen Add delete_surrounding_text event in the text_model interface and the request in the input_method_context interface. Implement it in the example editor client and in the example keyboard so that the backspace key works with it. Signed-off-by: Jan Arne Petersen --- clien

[PATCH v2 14/17] text: Add support for pre-edit string

2012-09-09 Thread Jan Arne Petersen
From: Jan Arne Petersen Add support of preedit-string to the example editor client. Also add a preedit_string request to the input_method_context interface and use that in the example weston keyboard to first create a pre-edit string when entering keys and commit it on space. Signed-off-by: Jan

[PATCH v2 13/17] keyboard: Use a qwerty virtual keyboard layout

2012-09-09 Thread Jan Arne Petersen
From: Jan Arne Petersen Add support for a proper qwerty virtual keyboard layout with lowercase and uppercase state, space and enter button. Signed-off-by: Jan Arne Petersen --- clients/keyboard.c | 206 - 1 file changed, 171 insertions(+), 35

[PATCH v2 11/17] text: Fix set_surrounding_text request

2012-09-09 Thread Jan Arne Petersen
From: Jan Arne Petersen Add cursor and anchor positions as arguments to the set_surrounding_text request. The cursor and anchor positions are relative to the surrounded text, so it does not make sense to have that separate. Remove the separate set_cursor_index and set_selected_text requests. Also

[PATCH v2 12/17] text: Split text and input-method protocols

2012-09-09 Thread Jan Arne Petersen
From: Jan Arne Petersen It makes sense to split the interfaces in a text and a input-method protocol for now (only the text protocol needs to be used in toolkits). Signed-off-by: Jan Arne Petersen --- clients/.gitignore| 2 ++ clients/Makefile.am | 6 ++-- clients/keyboard.c

[PATCH v2 10/17] editor: Add support for setting a preedit

2012-09-09 Thread Jan Arne Petersen
From: Jan Arne Petersen Add support for setting a preedit text to the editor example. Signed-off-by: Jan Arne Petersen --- clients/editor.c | 91 ++-- 1 file changed, 89 insertions(+), 2 deletions(-) diff --git a/clients/editor.c b/clients/e

[PATCH v2 09/17] editor: Add support for selection

2012-09-09 Thread Jan Arne Petersen
From: Jan Arne Petersen Make it possible to select text and render the selection to the editor example. Signed-off-by: Jan Arne Petersen --- clients/editor.c | 76 +++- 1 file changed, 75 insertions(+), 1 deletion(-) diff --git a/clients/edi

[PATCH v2 08/17] editor: Insert commit-string at cursor

2012-09-09 Thread Jan Arne Petersen
From: Jan Arne Petersen Instead of appending at the end, insert the commit-string at the cursor position. Signed-off-by: Jan Arne Petersen --- clients/editor.c | 34 -- 1 file changed, 24 insertions(+), 10 deletions(-) diff --git a/clients/editor.c b/clients/ed

[PATCH v2 07/17] editor: Add support for cursor

2012-09-09 Thread Jan Arne Petersen
From: Jan Arne Petersen Add support for setting, moving and rendering a cursor. Signed-off-by: Jan Arne Petersen --- clients/editor.c | 100 +++ 1 file changed, 100 insertions(+) diff --git a/clients/editor.c b/clients/editor.c index 03abab2

[PATCH v2 06/17] editor: Extract text handling into text_layout

2012-09-09 Thread Jan Arne Petersen
From: Jan Arne Petersen Create a text_layout struct and functions for handling simple text layouts. Signed-off-by: Jan Arne Petersen --- clients/editor.c | 99 +--- 1 file changed, 94 insertions(+), 5 deletions(-) diff --git a/clients/editor

[PATCH v2 05/17] editor: Make text_entry a widget

2012-09-09 Thread Jan Arne Petersen
From: Jan Arne Petersen Simplify the example client by making text_entry a widget. Signed-off-by: Jan Arne Petersen --- clients/editor.c | 180 +-- 1 file changed, 94 insertions(+), 86 deletions(-) diff --git a/clients/editor.c b/clients/edi

[PATCH v2 03/17] text: Introduce input_method_context interface

2012-09-09 Thread Jan Arne Petersen
From: Jan Arne Petersen Add an input_method_context interface which is the representation of a text_model on input_method side. Signed-off-by: Jan Arne Petersen --- clients/keyboard.c | 39 - protocol/text.xml | 15 +++- src/text-backend.c | 100 +

[PATCH v2 04/17] text: Add some documentation to the text protocol

2012-09-09 Thread Jan Arne Petersen
From: Jan Arne Petersen Signed-off-by: Jan Arne Petersen --- protocol/text.xml | 73 --- 1 file changed, 70 insertions(+), 3 deletions(-) diff --git a/protocol/text.xml b/protocol/text.xml index 7554167..a196b55 100644 --- a/protocol/text.xm

[PATCH v2 02/17] text: Have only one text_model_factory

2012-09-09 Thread Jan Arne Petersen
From: Philipp Brüschweiler Have only one text_model_factory instead of one per seat. This commit also introduces destruction of an input method when the corresponding seat is removed. Signed-off-by: Jan Arne Petersen --- src/compositor.c | 1 + src/compositor.h | 3 +++ src/text-backend

[PATCH v2 01/17] text: Remove surface arg in create_text_model

2012-09-09 Thread Jan Arne Petersen
From: Jan Arne Petersen Remove the wl_surface argument from create_text_model request. The wl_surface is specified as an argument in the activate request instead. Signed-off-by: Jan Arne Petersen --- clients/editor.c | 6 ++ protocol/text.xml| 1 - src/text-backend.c

[PATCH v2 00/17] Improved text protocol, editor and keyboard examples

2012-09-09 Thread Jan Arne Petersen
From: Jan Arne Petersen Fixed some small bugs in still open patches, and added them here since they are dependencies of the other changes. Improve the editor example adding cursor, selection and pre-edit support. Add a proper QWERTY keyboard layout example with upper- and lowercase letters. En

It's easy to get console / VT output to a file

2012-09-09 Thread darxus
Ran weston on the DRM backend (outside X), it did something weird, and you want to get the output to a file? (And haven't set up gpm in forever?) It's really easy: # setterm -file log.txt -dump 4 Where "4" was the virtual terminal number I wanted the text from. You'll need to run it as root.

[PATCH] event-loop: add wl_event_loop_has_idle() helper

2012-09-09 Thread David Herrmann
As event-loop uses epoll() as base object we can stick one event-loop into another by retrieving the epoll-fd and watching for events on it. However, the idle objects aren't based on file-descriptors so if one event-callback adds a new idle-source, the possible parent event-loop isn't notified of t