Problems with the newest wayland git

2012-11-15 Thread Bill Spitzak
This is not working very well for me. Most things point to EGL not working, but there are some strange problems. I am running the x11-compositor. This opens and displays the blue window with the red titlebar and icons on the top. I think it tries to run weston-terminal and that fails. Almost

Re: [PATCH wayland 1/2 v2] protocol: Add resize from center flag.

2012-11-15 Thread Scott Moreau
On Thu, Nov 15, 2012 at 1:02 PM, Scott Moreau wrote: > > > On Thu, Nov 15, 2012 at 12:57 PM, Bill Spitzak wrote: > >> A scheme I have seen is to use 15 (ie all 4 edge flags or'd) for >> center-resize. This makes it possible to add 6 (left | right) for "center >> resize horizontally" and 3 (top |

Re: [PATCH wayland 1/2 v2] protocol: Add resize from center flag.

2012-11-15 Thread Scott Moreau
On Thu, Nov 15, 2012 at 1:45 PM, Bill Spitzak wrote: > Scott Moreau wrote: > > Now that you mention it, I believe I have seen this used somewhere too >> and it makes sense. As a side note, the algorithm is always the same for >> resize-from-center regardless if it's horizontal, vertical or both.

Re: [PATCH wayland 1/2 v2] protocol: Add resize from center flag.

2012-11-15 Thread Bill Spitzak
Scott Moreau wrote: Now that you mention it, I believe I have seen this used somewhere too and it makes sense. As a side note, the algorithm is always the same for resize-from-center regardless if it's horizontal, vertical or both. I was imagining "resize from center horizontal" would only mo

Re: [PATCH wayland 1/2 v2] protocol: Add resize from center flag.

2012-11-15 Thread Scott Moreau
On Thu, Nov 15, 2012 at 12:57 PM, Bill Spitzak wrote: > A scheme I have seen is to use 15 (ie all 4 edge flags or'd) for > center-resize. This makes it possible to add 6 (left | right) for "center > resize horizontally" and 3 (top | bottom) for "center resize vertically". > > The only values from

Re: [PATCH wayland 1/2 v2] protocol: Add resize from center flag.

2012-11-15 Thread Bill Spitzak
A scheme I have seen is to use 15 (ie all 4 edge flags or'd) for center-resize. This makes it possible to add 6 (left | right) for "center resize horizontally" and 3 (top | bottom) for "center resize vertically". The only values from 1-15 that have no meaning are when 3 edges are selected.

[PATCH weston 2/2 v2] Implement resize-from-center mode.

2012-11-15 Thread Scott Moreau
This switches to resize-from-center mode when shift is pressed during a resize. --- This patch also removes WINDOW_EXTERIOR, WINDOW_TITLEBAR and WINDOW_CLIENT_AREA from the window_location enum. They do not appear to be used anywhere. v2: Use shift key state to control toggling resize-from-cente

[PATCH wayland 1/2 v2] protocol: Add resize from center flag.

2012-11-15 Thread Scott Moreau
--- v2: No changes. protocol/wayland.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/protocol/wayland.xml b/protocol/wayland.xml index 4205dae..25fc3ae 100644 --- a/protocol/wayland.xml +++ b/protocol/wayland.xml @@ -551,6 +551,7 @@ + -- 1.7.

Re: [PATCH 00/15] Hardware keyboard input for input methods

2012-11-15 Thread Bill Spitzak
It appears that both the input method and the client have to do the xkb decoding from hardware events to keysyms and shift information. And that the method used by the input method to produce "other" keys is to, in effect, run xkb backwards to produce fake hardware events from the desired resul

Re: [PATCH v2 0/9] Hardware keyboard input for input methods v2

2012-11-15 Thread Jan Arne Petersen
On 11/15/2012 11:29 AM, Jan Arne Petersen wrote: > My current idea would be to add a modifier_names event to text_model, so > that an input method sends an array of known modifier names (which would > be the same used by xkb_keymap_mod_get_index). The mapping to a bitmask > is than just done by th

Re: [PATCH wayland 3/3] doc: Provide a fallback solution when Publican is not found

2012-11-15 Thread Pekka Paalanen
On Wed, 14 Nov 2012 14:18:23 -0200 Tiago Vignatti wrote: > It provides a simple HTML solution from DocBook. > > Signed-off-by: Tiago Vignatti > --- > configure.ac| 13 - > doc/Wayland/Makefile.am |5 - > 2 files changed, 16 insertions(+), 2 deletions(-) Hi Ti

Re: [RFC weston 0/2] Adding a more flexible shader generation

2012-11-15 Thread John Kåre Alsaker
On Thu, Nov 15, 2012 at 11:01 AM, Ander Conselvan de Oliveira wrote: > On 11/14/2012 05:41 PM, John Kåre Alsaker wrote: >> >> These two patches adds a flexible shader generation which is based on >> concatenating strings instead of duplicating them into a lot of literals. >> This becomes more usef

Re: [PATCH weston 1/3] compositor: Update input region when updating surface transfomations

2012-11-15 Thread Pekka Paalanen
On Thu, 15 Nov 2012 10:36:00 +0100 Jonas Ådahl wrote: > On Thu, Nov 15, 2012 at 8:52 AM, Pekka Paalanen wrote: > > On Wed, 14 Nov 2012 23:39:51 +0100 > > Jonas Ådahl wrote: > > > >> If the compositor updated the geometry of a surface, the input region > >> would still represent the original geo

[PATCH v2 7/9] window: Allow to get xkb context from display

2012-11-15 Thread Jan Arne Petersen
From: Jan Arne Petersen Add display_get_xkb_context to get the xkb context from the display. Signed-off-by: Jan Arne Petersen --- clients/window.c | 6 ++ clients/window.h | 3 +++ 2 files changed, 9 insertions(+) diff --git a/clients/window.c b/clients/window.c index a370c34..f1a303b 100

[PATCH v2 9/9] text: Add simple compose input method

2012-11-15 Thread Jan Arne Petersen
From: Jan Arne Petersen Add an input method listening to hardware keyboard input and generating compose text. Signed-off-by: Jan Arne Petersen --- clients/.gitignore | 1 + clients/Makefile.am| 11 +- clients/weston-simple-im.c | 338 +

[PATCH v2 8/9] editor: Add support for editing text using the keyboard

2012-11-15 Thread Jan Arne Petersen
From: Rob Bradford This simple change allows you to drive the editor using the keyboard (supporting backspace and delete and left and right arrow keys.) The idea behind this change is to allow the testing of the interoperation between a virtual keyboard and real one. Signed-off-by: Rob Bradford

[PATCH v2 6/9] window: Add utils for xkb keyboard input

2012-11-15 Thread Jan Arne Petersen
From: Jan Arne Petersen Signed-off-by: Jan Arne Petersen --- clients/Makefile.am | 2 + clients/keyboard-utils.c | 173 +++ clients/keyboard-utils.h | 67 ++ 3 files changed, 242 insertions(+) create mode 100644 clients/keyboa

[PATCH v2 5/9] text: Add support for forwarding key events

2012-11-15 Thread Jan Arne Petersen
From: Jan Arne Petersen Allow an input method to forward (unfiltered) key and modifier events from the hardware keyboard to the client. Signed-off-by: Jan Arne Petersen --- protocol/input-method.xml | 13 + src/text-backend.c| 41 - 2

[PATCH v2 4/9] text: Add support for grabbing the keyboard

2012-11-15 Thread Jan Arne Petersen
From: Jan Arne Petersen Add support for requesting hardware input into an input method. Signed-off-by: Jan Arne Petersen --- protocol/input-method.xml | 9 src/text-backend.c| 107 -- 2 files changed, 112 insertions(+), 4 deletions(-)

[PATCH v2 0/9] Hardware keyboard input for input methods v2

2012-11-15 Thread Jan Arne Petersen
From: Jan Arne Petersen >> text: Start input method from configuration > I'm happy to see this functionality land, but there's few comments on > the patch. I fixed the comments on this patch. >> text: Rename and extend text_model key event > I'm holding off on this one and the remaining pa

[PATCH v2 3/9] text: Send more information with keysym events

2012-11-15 Thread Jan Arne Petersen
From: Jan Arne Petersen Send state and modifier from the demo keyboard with the keysym event and take them into account in the editor example. Signed-off-by: Jan Arne Petersen --- clients/editor.c | 50 +- clients/keyboard.c | 32 ++

[PATCH v2 1/9] text: Start input method from configuration

2012-11-15 Thread Jan Arne Petersen
From: Jan Arne Petersen Start the input method specified in the weston.ini configuration file. Signed-off-by: Jan Arne Petersen --- src/compositor.c | 5 +- src/compositor.h | 10 ++-- src/text-backend.c | 134 +++-- weston.ini |

[PATCH v2 2/9] text: Rename and extend text_model key event

2012-11-15 Thread Jan Arne Petersen
From: Jan Arne Petersen Rename the key event in text_model to keysym and add serial, time and modifiers arguments. Signed-off-by: Jan Arne Petersen --- clients/editor.c | 13 - clients/keyboard.c| 40 ++-- protocol/input-method.x

Re: [RFC weston 0/2] Adding a more flexible shader generation

2012-11-15 Thread Ander Conselvan de Oliveira
On 11/14/2012 05:41 PM, John Kåre Alsaker wrote: These two patches adds a flexible shader generation which is based on concatenating strings instead of duplicating them into a lot of literals. This becomes more useful as I add shader variants for converting to/from sRGB gamma and it also allow

Re: [PATCH weston 1/3] compositor: Update input region when updating surface transfomations

2012-11-15 Thread Jonas Ådahl
On Thu, Nov 15, 2012 at 8:52 AM, Pekka Paalanen wrote: > On Wed, 14 Nov 2012 23:39:51 +0100 > Jonas Ådahl wrote: > >> If the compositor updated the geometry of a surface, the input region >> would still represent the original geometry. By intersecting the input >> region specified by the client,