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

2012-11-14 Thread Pekka Paalanen
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, if any, by the new geometry when > updating surface transformati

[PATCH weston 8/8 v2] shell: Use a dedicated variable for minimize state.

2012-11-14 Thread Scott Moreau
Minimize is a state, not a type. Maximize is also a state but it is stored in a type enum in the shell plugin. Initially, the intent here was to be consistent by using a minimized type. However, this causes problems when trying to keep track of multiple states using a single type enum and simply wo

[PATCH weston 7/8 v2] shell: Implement maximize menu button functionality.

2012-11-14 Thread Scott Moreau
Toggle maximize from drop down menu. --- clients/desktop-shell.c| 41 + clients/window.c | 6 ++ protocol/desktop-shell.xml | 10 ++ src/shell.c| 23 +++ 4 files changed, 76 insertions(+), 4 del

[PATCH weston 6/8 v2] shell: Install listeners to reflect shell surface protocol changes.

2012-11-14 Thread Scott Moreau
This patch adds listeners for the maximize and minimize events found in the wayland patch "protocol: Add minimize/maximize protocol.". It also hooks up the minimize titlebar button along the way. --- clients/simple-egl.c | 26 +- clients/simple-shm.c | 26 ++

[PATCH wayland 5/8 v2] protocol: Add minimize/maximize protocol.

2012-11-14 Thread Scott Moreau
In order for clients to notify the compositor that they wish to be minimized, a minimize request is needed. This can be used to minimize the surface when a user clicks the clients minimize button. The compositor needs a way to tell clients to maximize and unmaximize their surfaces. The desktop she

[PATCH weston 4/8 v2] shell: Implement simple dnd for window list item reordering.

2012-11-14 Thread Scott Moreau
This allows the user to rearrange the list items by drag-and-drop. There is no drag icon, only preliminary functionality. Eventually, this should be expanded to use the wayland dnd protocol. --- clients/desktop-shell.c | 84 + 1 file changed, 84 ins

[PATCH weston 3/8 v2] shell: Implement menu for window list items.

2012-11-14 Thread Scott Moreau
Right-click dropdown menu for window list items. This patch introduces a simple minimize feature. The surface is removed from the layer list on minimize and re-added on unminimize. The close item sends the client a SIGTERM signal. --- clients/desktop-shell.c| 175 ++

[PATCH weston 2/8 v2] shell: Implement panel window list.

2012-11-14 Thread Scott Moreau
This patch uses the special surface_data interface to send information about the surface to the shell. The shell then uses this information to render a window list in the panel. --- clients/desktop-shell.c | 526 ++-- data/Makefile.am| 1 + dat

[PATCH weston 1/8 v2] shell: Install protocol for surface_data objects.

2012-11-14 Thread Scott Moreau
This patch introduces a new surface_data_manager interface that allows the compositor to send surface data to the shell client, using the accompanying surface_data object interface. This allows the shell client to receive information about surfaces to build a window list, for example. --- protocol

Panel window list v2

2012-11-14 Thread Scott Moreau
Hi, I have rebased the window list series and made the changes discussed with Kristian on IRC. I included the wayland patch in with the weston patches so it is obvious which weston patch depends on it. v2: - Rebased patches to latest master - Remove keyboard focus when minimized - Center list i

[PATCH weston 3/3] tests: Make sure that events are handled before sending client states

2012-11-14 Thread Jonas Ådahl
Before the client sends its state, make a roundtrip to the server to make sure that all events queued by the server are handled. Signed-off-by: Jonas Ådahl --- Hi, After this commit, the tests pass some of the times (on my machine), but far from every time. It haven't figured out why this is ye

[PATCH weston 2/3] tests: Make test clients commit their surfaces when creating them

2012-11-14 Thread Jonas Ådahl
Signed-off-by: Jonas Ådahl --- tests/test-client.c |1 + tests/test-text-client.c |1 + 2 files changed, 2 insertions(+) diff --git a/tests/test-client.c b/tests/test-client.c index 168c663..8ef9584 100644 --- a/tests/test-client.c +++ b/tests/test-client.c @@ -403,6 +403,7 @@ creat

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

2012-11-14 Thread Jonas Ådahl
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, if any, by the new geometry when updating surface transformations the active input region can be kept up to date. Signed-off-

Re: [PATCH] client: Fix source comment typos

2012-11-14 Thread Kristian Høgsberg
On Sat, Oct 20, 2012 at 02:00:28PM +0200, Martin Olsson wrote: Oops almost lost this one. Thanks for the reminder, Martin. The dispatch_event comment no longer has the 'preceding' text, but the wl_display_get_error() fix is good. Kristian > --- > src/wayland-client.c |8 > 1 file

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

2012-11-14 Thread Tiago Vignatti
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(-) diff --git a/configure.ac b/configure.ac index a451948..f423991 100644 --- a/c

[PATCH wayland 2/3] doc: Add our own Legal Notice

2012-11-14 Thread Tiago Vignatti
Previously, Publican was auto-generating a file with it and systems that don't have such tool can't benefit from it. This patch adds our own copy of Legal Notice. Signed-off-by: Tiago Vignatti --- doc/Wayland/en_US/Book_Info.xml | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-)

[PATCH wayland 1/3] doc: Enable docbook building without Publican also

2012-11-14 Thread Tiago Vignatti
This patch enables the docbook XML documentation to be built even in the absence of the Publican tool. Though, when lacking Publican, no pdf/html/etc conversion from XML is performed yet. Signed-off-by: Tiago Vignatti --- doc/Wayland/Makefile.am | 43 +++-- doc/Wayl

[RFC weston 2/2] gl-renderer: Add flexible shader generation.

2012-11-14 Thread John Kåre Alsaker
This add a more flexible way of generating shaders. It generates all valid combinations of different input, conversion and output pipelines, which can easily be extended with more if desired. --- src/gl-internal.h | 65 +++-- src/gl-renderer.c | 68 +++--- src/gl-shaders.c | 706 +++

[RFC weston 1/2] gl-renderer: Move shader functions into it's own file.

2012-11-14 Thread John Kåre Alsaker
This moves all shader functions into it's own file in preparation of a more flexible shader generation. It adds gl-internal.h for shared definitions between the files. --- src/Makefile.am | 2 + src/gl-internal.h | 138 src/gl-renderer.c | 376 ++---

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

2012-11-14 Thread John Kåre Alsaker
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 allows me to easily get rid of the alpha uniform used fo