[weston PATCH v10 2/2] add the test case for set_maximised

2012-02-09 Thread juan . j . zhao
From: Juan Zhao F8: set maximised F7: set toplevel to back --- clients/Makefile.am |6 +- clients/simple-rect.c | 647 + 2 files changed, 652 insertions(+), 1 deletions(-) create mode 100644 clients/simple-rect.c diff --git a/clients/Makef

[weston PATCH v10 1/2] add the set_maximised implementation

2012-02-09 Thread juan . j . zhao
From: Juan Zhao --- src/shell.c | 99 --- 1 files changed, 94 insertions(+), 5 deletions(-) diff --git a/src/shell.c b/src/shell.c index 53b192c..d7c2476 100644 --- a/src/shell.c +++ b/src/shell.c @@ -81,6 +81,7 @@ enum shell_surface_typ

[protocol PATCH v10] add set_maximised protocol

2012-02-09 Thread juan . j . zhao
From: Juan Zhao A request from the client to notify the compositor the maximised operation. The compositor will reply with a configure event telling the expected new surface size. The operation is completed on the next buffer attach to this surface. A maximised client will fill the fullscreen

[PATCH v10 0/3] set_maximised implemetation protocol + weston

2012-02-09 Thread juan . j . zhao
From: Juan Zhao v6: I rebase the set_maximised work at first. Because it is independed with fullscreen protocol. v7: update the protocol comments remove some unnecessary printf add output parameter, only the bound output can be set maximised to move the geometry calculation to map an

Re: [PATCH] wip: per-pixel surface picking

2012-02-09 Thread Daniel Stone
Hi, On 10 February 2012 00:41, Bill Spitzak wrote: > You are probably right that the round-trip would be bad. > > Can it just use the transparency of the current buffer, rather than other > information that needs to be transmitted from the client? > > Another possibility is that the api is simpli

Re: [PATCH] wip: per-pixel surface picking

2012-02-09 Thread Bill Spitzak
You are probably right that the round-trip would be bad. Can it just use the transparency of the current buffer, rather than other information that needs to be transmitted from the client? Another possibility is that the api is simplified to *one* rectangle, and the client says "anything insi

Re: [PATCH] wip: per-pixel surface picking

2012-02-09 Thread Daniel Stone
Hi, Sorry for the drive-by, but ... On 9 February 2012 21:43, Bill Spitzak wrote: > I feel that a better solution is for the compositor to send any event in the > surface rectangle to the client, but the client is allowed to respond with a > "that is in the transparent area", in which case the co

Re: [PATCH] wip: per-pixel surface picking

2012-02-09 Thread Bill Spitzak
I feel that a better solution is for the compositor to send any event in the surface rectangle to the client, but the client is allowed to respond with a "that is in the transparent area", in which case the compositor sends it to a lower surface. The client certainly knows what shape it's surf

[PATCH 3/3] compositor-drm: add sprite support v6

2012-02-09 Thread Jesse Barnes
Add support for assigning surfaces to overlay sprites using the new assign_planes hook. v2: queue per-sprite vblank events to avoid de-queuing sprite updates for unrelated outputs (reported by krh) v3: handle output and surface transformation when calculating src & dest rects for the sprit

[PATCH 2/3] compositor: add an assign_planes hook to the output

2012-02-09 Thread Jesse Barnes
This allows each output back end to optimize drawing using overlay planes and cursors (yet to be integrated). If a surface is assigned to a plane, the back end should clear its damage field so that the later repaint code won't look at it. --- src/compositor-drm.c |1 + src/compositor-open

[PATCH 1/3] tests: add COMPOSITOR_CFLAGS to the build

2012-02-09 Thread Jesse Barnes
This lets the tests pick up headers from an alternate install root. --- tests/Makefile.am |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/tests/Makefile.am b/tests/Makefile.am index a1f361e..0b3ed40 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -6,7 +6,7 @@ en

Weston plane patches

2012-02-09 Thread Jesse Barnes
Ok I think these are ready, pending the commit of the DRM format handling to GBM. Thanks, Jesse ___ wayland-devel mailing list wayland-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/wayland-devel

[ANNOUNCE] Wayland and Weston 0.85.0 released

2012-02-09 Thread Kristian Høgsberg
Hello all, We're releasing Wayland and Weston 0.85.0 today: http://wayland.freedesktop.org/releases/wayland-0.85.0.tar.xz http://wayland.freedesktop.org/releases/weston-0.85.0.tar.xz SHA1 checksums: 8114f244603a106fbf28ffd92e537acdd0b29a8b wayland-0.85.0.tar.xz 95db6a3f61c3c9f6e6f3a5d2

Re: [PATCH 2/2] automake: Don't fail the build if we can't setuid.

2012-02-09 Thread Daniel Stone
Hi, On 9 February 2012 16:36, Eric Anholt wrote: > diff --git a/clients/window.c b/clients/window.c > index 3246189..1c6b04e 100644 > --- a/clients/window.c > +++ b/clients/window.c > @@ -2733,7 +2733,7 @@ init_xkb(struct display *d) >  static void >  fini_xkb(struct display *display) >  { > -  

[PATCH 2/2] automake: Don't fail the build if we can't setuid.

2012-02-09 Thread Eric Anholt
The configure default is to setuid root the weston compositor. However, if installing as non-root (say, to your prefix in homedir), the install fails anyway, even if you didn't need setuid to run weston in your configuration. --- clients/window.c |2 +- src/Makefile.am |4 ++-- 2 files ch

[PATCH 1/2] configure: Fix build on debian by avoiding bashisms in the test command.

2012-02-09 Thread Eric Anholt
--- configure.ac | 42 +- 1 files changed, 21 insertions(+), 21 deletions(-) diff --git a/configure.ac b/configure.ac index 02f4040..7596799 100644 --- a/configure.ac +++ b/configure.ac @@ -33,13 +33,13 @@ AM_CONDITIONAL(HAVE_RSVG_CONVERT, test -n "$RSVG_

[PATCH 5/7] scanner: don't print new line when no descriptions are provided

2012-02-09 Thread y
From: Tiago Vignatti Signed-off-by: Tiago Vignatti --- src/scanner.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/src/scanner.c b/src/scanner.c index 22596f8..5043cc1 100644 --- a/src/scanner.c +++ b/src/scanner.c @@ -673,8 +673,9 @@ emit_structs(struct wl_list *me

[PATCH 7/7] scanner: dump interfaces in tex format and plug with main.tex

2012-02-09 Thread y
From: Tiago Vignatti Signed-off-by: Tiago Vignatti --- spec/main.tex | 17 + src/Makefile.am |3 ++- src/scanner.c | 50 +- src/scanner.mk |3 +++ 4 files changed, 55 insertions(+), 18 deletions(-) diff --git a/sp

[PATCH 6/7] scanner: fix program name and its text for usage()

2012-02-09 Thread y
From: Tiago Vignatti Signed-off-by: Tiago Vignatti --- src/scanner.c |7 --- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/scanner.c b/src/scanner.c index 5043cc1..51c01af 100644 --- a/src/scanner.c +++ b/src/scanner.c @@ -30,9 +30,10 @@ #include "wayland-util.h"

[PATCH 4/7] scanner: fix wrapped text to start with tabs and not space

2012-02-09 Thread y
From: Tiago Vignatti Signed-off-by: Tiago Vignatti --- src/scanner.c |7 +-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/scanner.c b/src/scanner.c index 13bb0cf..22596f8 100644 --- a/src/scanner.c +++ b/src/scanner.c @@ -165,8 +165,11 @@ desc_dump(char *src, int s

[PATCH 3/7] scanner: fix descriptions to proper wrap at < 72 position

2012-02-09 Thread y
From: Tiago Vignatti Signed-off-by: Tiago Vignatti --- src/scanner.c | 15 --- 1 files changed, 12 insertions(+), 3 deletions(-) diff --git a/src/scanner.c b/src/scanner.c index f88fb4d..13bb0cf 100644 --- a/src/scanner.c +++ b/src/scanner.c @@ -139,7 +139,8 @@ uppercase_dup(cons

[PATCH 2/7] protocol: fix typo

2012-02-09 Thread y
From: Tiago Vignatti Signed-off-by: Tiago Vignatti --- protocol/wayland.xml | 10 +- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/protocol/wayland.xml b/protocol/wayland.xml index cad2507..c445d3f 100644 --- a/protocol/wayland.xml +++ b/protocol/wayland.xml @@ -7,7 +

[PATCH 1/7] spec: fix typo

2012-02-09 Thread y
From: Tiago Vignatti Signed-off-by: Tiago Vignatti --- spec/main.tex |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/spec/main.tex b/spec/main.tex index 756bf38..59d4fe0 100644 --- a/spec/main.tex +++ b/spec/main.tex @@ -22,7 +22,7 @@ \subsection{Replacing X11} In

[PATCH 0/7] dump interfaces

2012-02-09 Thread y
From: Tiago Vignatti Kristian, I've rebased my branch on current master: http://cgit.freedesktop.org/~vignatti/wayland/log/?h=tex If someone else wants to check the patchset, most of the changes are related with the documentation of the protocol. In special, the last patch modifies the scan

[PATCH] wip: per-pixel surface picking

2012-02-09 Thread Tiago Vignatti
This is an unfinished work and I won't have time to deal with it next. My intention was to come up with a protocol for applications specify the effective shape of their windows. Say, flower client could send a bunch of rectangles to the compositor telling about its real shape, so whenever an input

[PATCH 5/5] clients: fix spelling

2012-02-09 Thread Tiago Vignatti
From: Tiago Vignatti Signed-off-by: Tiago Vignatti --- clients/cairo-util.c | 16 clients/gears.c |2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/clients/cairo-util.c b/clients/cairo-util.c index df2fb1b..4257590 100644 --- a/clients/cairo-util.

[PATCH 4/5] window: simplify a bit widget_set_size and widget_set_allocation

2012-02-09 Thread Tiago Vignatti
From: Tiago Vignatti Signed-off-by: Tiago Vignatti --- clients/window.c |5 + 1 files changed, 1 insertions(+), 4 deletions(-) diff --git a/clients/window.c b/clients/window.c index 5264d87..ae5a791 100644 --- a/clients/window.c +++ b/clients/window.c @@ -1076,8 +1076,6 @@ widget_get_a

[PATCH 3/5] window: explicitly set TYPE_TOPLEVEL for new windows

2012-02-09 Thread Tiago Vignatti
From: Tiago Vignatti Signed-off-by: Tiago Vignatti --- clients/window.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/clients/window.c b/clients/window.c index 3246189..5264d87 100644 --- a/clients/window.c +++ b/clients/window.c @@ -2281,6 +2281,7 @@ window_create_in

[PATCH 2/5] shell: remove duplicated code

2012-02-09 Thread Tiago Vignatti
From: Tiago Vignatti This clean-up seems alright, but someone with better knowledge has to doublecheck this function. I guess there's a lot of space for clean-up there. Signed-off-by: Tiago Vignatti --- src/shell.c | 19 +++ 1 files changed, 3 insertions(+), 16 deletions(-)

[PATCH 1/5] compositor: make functions static

2012-02-09 Thread Tiago Vignatti
From: Tiago Vignatti I know it's hard to figure out what the shells or backends will be using as internal API at this point but we can try to minimize the amount of WL_EXPORT being used anyway. Signed-off-by: Tiago Vignatti --- src/compositor.c | 42 +-

[PATCH 0/5] misc cleanup

2012-02-09 Thread Tiago Vignatti
Kristian, this is all straightforward patches I've catch while checking the surface picking code: http://cgit.freedesktop.org/~vignatti/wayland-demos/log/?h=misc-cleanup Thanks, Tiago Vignatti (5): compositor: make functions static shell: remove duplicated code window: explicitly set TYPE_

Re: [weston PATCH v9 1/2] add the set_maximised implementation

2012-02-09 Thread Pekka Paalanen
On Thu, 9 Feb 2012 10:09:30 +0800 juan.j.z...@linux.intel.com wrote: > From: Juan Zhao > > --- > src/shell.c | 89 > ++- > 1 files changed, 88 insertions(+), 1 deletions(-) > > diff --git a/src/shell.c b/src/shell.c > index 53b192c..2