Re: [protocol PATCH v3 1/2] add parameters to fullscreen

2012-01-16 Thread Pekka Paalanen
On Mon, 16 Jan 2012 11:38:13 -0800 Bill Spitzak wrote: > Pekka Paalanen wrote: Odd, there are no quotes from me... > >> From: Juan Zhao > >> > >> Map the surface as a fullscreen surface. Four types are supported. > >> "default" means the client has no preference on fullscreen > >> be

[PATCH v5 4/4] add implementation for set_maximised

2012-01-16 Thread juan . j . zhao
From: Juan Zhao Signed-off-by: Juan Zhao Signed-off-by: Zhiwen Wu --- src/shell.c | 52 ++-- 1 files changed, 50 insertions(+), 2 deletions(-) diff --git a/src/shell.c b/src/shell.c index cba0556..8da38b7 100644 --- a/src/shell.c +++ b/src/she

[PATCH v5 3/4] add detailed implementation for fullscreen support

2012-01-16 Thread juan . j . zhao
From: Juan Zhao Signed-off-by: Juan Zhao Signed-off-by: Zhiwen Wu --- src/compositor-drm.c | 156 src/compositor.c | 216 ++ src/shell.c | 13 +++- 3 files changed, 352 insertions(+), 33 delet

[PATCH v5 2/4] add fullscreen interface update

2012-01-16 Thread juan . j . zhao
From: Juan Zhao mainly update shell part here Signed-off-by: Juan Zhao Signed-off-by: Juan Zhao --- src/compositor.c | 21 +- src/compositor.h | 28 - src/shell.c | 60 ++--- 3 files changed, 89

[PATCH v5 1/4] add fullscreen test code

2012-01-16 Thread juan . j . zhao
From: Juan Zhao F12:Force mode F11:Scale mode F10:Fill mode F09:Maximised F08:set_toplevel to reset Signed-off-by: Juan Zhao Signed-off-by: Zhiwen Wu --- clients/Makefile.am |5 +- clients/simple-fullscreen.c | 629 +++ clients/window.c

[protocol PATCH v5 2/2] add maximised protocol

2012-01-16 Thread juan . j . zhao
From: Juan Zhao add a request from the client to notify the compositor the maximised operation. The compositor will send a configure event back to the client Signed-off-by: Juan Zhao Signed-off-by: Zhiwen Wu --- protocol/wayland.xml |5 + 1 files changed, 5 insertions(+), 0 deletions(

[protocol PATCH v5 1/2] add parameters to set_fullscreen

2012-01-16 Thread juan . j . zhao
From: Juan Zhao Map the surface as a fullscreen surface. Four types are supported. "default" means the client has no preference on fullscreen behavior, policies are determined by compositor. The compositor will send a configure event to the client. "scale" means th

Re: [protocol PATCH v3 1/2] add parameters to fullscreen

2012-01-16 Thread Juan Zhao
On Mon, 2012-01-16 at 11:38 -0800, Bill Spitzak wrote: > > Pekka Paalanen wrote: > > >> From: Juan Zhao > >> > >> Map the surface as a fullscreen surface. Four types are supported. > >> "default" means the client has no preference on fullscreen > >> behavior, policies are determined

Re: [protocol PATCH v3 1/2] add parameters to fullscreen

2012-01-16 Thread Juan Zhao
On Mon, 2012-01-16 at 11:38 -0800, Bill Spitzak wrote: > > Pekka Paalanen wrote: > > >> From: Juan Zhao > >> > >> Map the surface as a fullscreen surface. Four types are supported. > >> "default" means the client has no preference on fullscreen > >> behavior, policies are determined

Re: how can i run the xorg under the wayland

2012-01-16 Thread wayland
Dear juan: thanks for you replay; right now i can run the xorg under the wayland, but when i run the xterm , the xorg get error: wl_drm@4: error 1: invalid format ; and the xterm get the error: xterm: fatal IO error 11 (Resource temporarily unavailable) or KillClient on X server ":1

Window stacking / raising design

2012-01-16 Thread Bill Spitzak
Pekka Paalanen suggested I come up with a design for the Wayland compositor to control window stacking and raising. I am pretty familiar with the failures of existing window management in this area and would certainly like to see Wayland do this correctly, and not copy the mistakes of the past

Re: [RFC] Updated plane handling

2012-01-16 Thread Kristian Høgsberg
On Mon, Jan 16, 2012 at 5:40 PM, Jesse Barnes wrote: > This set refactors thing a bit more and tries to somewhat unify > presentation of primary and sprite surfaces.  I broke something though > because terminal-in-a-sprite no longer works, but I think the > refactoring is interesting to look at an

Re: [PATCH 3/4] compositor: unify sprite and primary handling a bit

2012-01-16 Thread Kristian Høgsberg
On Mon, Jan 16, 2012 at 5:40 PM, Jesse Barnes wrote: > In assign_planes, we try to assign the primary buffer to the primary > plane, then look for additional surfaces to match to display planes.  At > present time, we'll then flip all those buffers onto the screen in a > synchronized way, then cle

Re: [PULL] Matrix inversion and tests v1

2012-01-16 Thread Kristian Høgsberg
On Mon, Jan 16, 2012 at 10:20 AM, Pekka Paalanen wrote: > Hi Kristian, > > this patch series implements inversion for 4x4 matrices, specifically > for struct weston_matrix. It comes with a test application for both > correctness and performance. Hi Pekka, The series look good, I like where it's

[PATCH 2/4] compositor: move scanout handling to compositor-drm

2012-01-16 Thread Jesse Barnes
Much of the scanout handling code is only used by the DRM compositor, so move it over to make it easier to add the sprite handling changes. --- src/compositor-drm.c | 44 +++- src/compositor.c | 30 +- src/compositor.h

[PATCH 1/4] compositor: add an plane assignment hook

2012-01-16 Thread Jesse Barnes
Each output may have ways of optimizing surface drawing (e.g. by using sprites), so push the handling of surface assignment to display planes into the output structure, providing the existing surface setup function as a helper. --- clients/window.h |3 - configure.ac |2

[PATCH 4/4] compositor: work around tty checking so gdb works

2012-01-16 Thread Jesse Barnes
This lets me run Weston as root in an ssh window and gdb and get stdout. --- src/compositor-drm.c |3 ++- src/tty.c|4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/compositor-drm.c b/src/compositor-drm.c index 9e25ffd..1751e72 100644 --- a/src/composi

[PATCH 3/4] compositor: unify sprite and primary handling a bit

2012-01-16 Thread Jesse Barnes
In assign_planes, we try to assign the primary buffer to the primary plane, then look for additional surfaces to match to display planes. At present time, we'll then flip all those buffers onto the screen in a synchronized way, then clean up and release the buffers when the corresponding page flip

[RFC] Updated plane handling

2012-01-16 Thread Jesse Barnes
This set refactors thing a bit more and tries to somewhat unify presentation of primary and sprite surfaces. I broke something though because terminal-in-a-sprite no longer works, but I think the refactoring is interesting to look at anyway. Any thoughts? Kristian, you mentioned something about

Re: [protocol PATCH v3 1/2] add parameters to fullscreen

2012-01-16 Thread Bill Spitzak
Pekka Paalanen wrote: From: Juan Zhao Map the surface as a fullscreen surface. Four types are supported. "default" means the client has no preference on fullscreen behavior, policies are determined by compositor. The compositor will send a configure event to the

[PATCH v4 4/4] add detailed implementation for fullscreen support

2012-01-16 Thread juan . j . zhao
From: Juan Zhao Signed-off-by: Juan Zhao Signed-off-by: Zhiwen Wu --- src/compositor-drm.c | 162 +++ src/compositor.c | 206 ++ src/shell.c | 11 +++ 3 files changed, 348 insertions(+), 31 del

[PATCH v4 3/4] add fullscreen interface update

2012-01-16 Thread juan . j . zhao
From: Juan Zhao mainly update shell part here Signed-off-by: Juan Zhao Signed-off-by: Zhiwen Wu --- src/compositor.c | 17 + src/compositor.h |7 +++ src/shell.c |1 + 3 files changed, 25 insertions(+), 0 deletions(-) diff --git a/src/compositor.c b/src/com

[PATCH v4 2/4] add fullscreen interface update

2012-01-16 Thread juan . j . zhao
From: Juan Zhao mainly update shell part here Signed-off-by: Juan Zhao Signed-off-by: Zhiwen Wu --- src/compositor.c |4 +- src/compositor.h | 21 ++- src/shell.c | 59 ++--- 3 files changed, 64 insertions(+), 20 del

[PATCH v4 1/4] add fullscreen test code

2012-01-16 Thread juan . j . zhao
From: Juan Zhao F12:Force mode F11:Scale mode F10:Fill mode F09:Maximised F08:set_toplevel to reset Signed-off-by: Juan Zhao Signed-off-by: Zhiwen Wu --- clients/Makefile.am |5 +- clients/simple-fullscreen.c | 620 +++ clients/window.c

[protocol PATCH v4 2/2] add maximised protocol

2012-01-16 Thread juan . j . zhao
From: Juan Zhao add a request from the client to notify the compositor the maximised operation. The compositor will send a configure event back to the client Signed-off-by: Juan Zhao Signed-off-by: Zhiwen Wu --- protocol/wayland.xml |5 + 1 files changed, 5 insertions(+), 0 deletions(

[protocol PATCH v4 1/2] add parameters to set_fullscreen

2012-01-16 Thread juan . j . zhao
From: Juan Zhao Map the surface as a fullscreen surface. Four types are supported. "default" means the client has no preference on fullscreen behavior, policies are determined by compositor. The compositor will send a configure event to the client. "scale" means th

Re: [PATCH v3 4/4] add fullscreen test code

2012-01-16 Thread Juan Zhao
On Mon, 2012-01-16 at 10:30 +0200, Pekka Paalanen wrote: > > It seems that patch 1 uses functions that are introduced only in patch > 2, weston_surface_center_on_output() and > weston_surface_set_fullscreen(). On build after patch 1 only, I get: > > CC desktop_shell_la-shell.lo > shell.c

[PULL] Matrix inversion and tests v1

2012-01-16 Thread Pekka Paalanen
Hi Kristian, this patch series implements inversion for 4x4 matrices, specifically for struct weston_matrix. It comes with a test application for both correctness and performance. The series starts with an irrelevant build fix, then has the transformation stack patch I sent to the mailing list ea

Re: [PATCH v3 4/4] add fullscreen test code

2012-01-16 Thread Pekka Paalanen
On Mon, 16 Jan 2012 01:23:17 +0800 juan.j.z...@linux.intel.com wrote: > From: Juan Zhao > > F12:Force mode > F11:Scale mode > F10:Fill mode > F09:Maximised > F08:set_toplevel to reset > > Signed-off-by: Juan Zhao > Signed-off-by: Zhiwen Wu For the whole patch set: On a quick look, it seems

Re: how can i run the xorg under the wayland

2012-01-16 Thread Juan Zhao
On Mon, 2012-01-16 at 14:21 +0800, wayland wrote: > > Dear All: > > i want to run xorg under the wayland as a wayland-client, and i download > the xorg in the > > git://people.freedesktop.org/~krh/xserver > > > and the intel video in the: > git://people.freedesktop.org/~krh/xf86-video-intel