Re: [PATCH 2/3] compositor-drm: Add switch_mode support.

2012-04-17 Thread Alex Wu
于 2012/4/18 9:01, Juan Zhao 写道: On 04/17/2012 05:20 PM, zhiwen...@linux.intel.com wrote: + if (!drm_mode) { + printf("%s, invalid resolution:%dx%d\n", __func__, mode->width, mode->height); + return -1; + } else if (&drm_mode->base == output->base.current) { + return 0; + } else if (drm_mode->b

[PATCH 3/3 v2] Dim unresponsive windows

2012-04-17 Thread Scott Moreau
If a client is not responding, lower the brightness and saturation to indicate it's stalled. The surface is restored to it's original color values if the client later becomes responsive. --- src/shell.c | 77 +++ 1 files changed, 77 inserti

[PATCH 2/3 v2] Install brightness and saturation variables for surface shader

2012-04-17 Thread Scott Moreau
--- src/compositor.c | 12 src/compositor.h |4 2 files changed, 16 insertions(+), 0 deletions(-) diff --git a/src/compositor.c b/src/compositor.c index 16d10f9..3fae8f5 100644 --- a/src/compositor.c +++ b/src/compositor.c @@ -217,6 +217,8 @@ weston_surface_create(struct w

[PATCH 1/3 v2] Install structuring for ping-pong protocol

2012-04-17 Thread Scott Moreau
--- clients/window.c |8 + src/compositor.c | 16 + src/compositor.h |2 + src/shell.c | 90 ++ 4 files changed, 116 insertions(+), 0 deletions(-) diff --git a/clients/window.c b/clients/window.c index a033130..e7974

Re: [PATCH 2/3] compositor-drm: Add switch_mode support.

2012-04-17 Thread Juan Zhao
On 04/17/2012 05:20 PM, zhiwen...@linux.intel.com wrote: + if (!drm_mode) { + printf("%s, invalid resolution:%dx%d\n", __func__, mode->width, mode->height); + return -1; + } else if (&drm_mode->base == output->base.current) { + return 0; +

[PATCH] Add support for surface enter/leave events

2012-04-17 Thread cdahlin
From: Casey Dahlin Signed-off-by: Casey Dahlin --- src/compositor.c | 103 ++--- src/compositor.h | 13 +-- src/shell.c | 52 +++ 3 files changed, 135 insertions(+), 33 deletions(-) diff --git a/src/composito

[PATCH] Add wl_surface.enter and wl_surface.leave events

2012-04-17 Thread cdahlin
From: Casey Dahlin These events let us track when a surface enters or leaves the scanout region of an output. This way if a surface moves to another output and that output is on a different card, we can suggest the toolkit reallocate its buffers appropriately. Signed-off-by: Casey Dahlin --- p

Re: [PATCH] weston-launch: be more descriptive with output messages

2012-04-17 Thread Kristian Høgsberg
On Tue, Apr 17, 2012 at 1:57 PM, Benjamin Franzke wrote: > 2012/4/17 Tiago Vignatti : >> Specially the "either" word there is essential, so users don't confuse >> thinking that both steps are needed. >> >> Signed-off-by: Tiago Vignatti >> --- >> I started to implement udev based session support f

Re: [PATCH] weston-launch: be more descriptive with output messages

2012-04-17 Thread Kristian Høgsberg
On Tue, Apr 17, 2012 at 1:54 PM, Pekka Paalanen wrote: > On Tue, 17 Apr 2012 20:10:11 +0300 > Tiago Vignatti wrote: > >> Specially the "either" word there is essential, so users don't >> confuse thinking that both steps are needed. > > Good! > >> Signed-off-by: Tiago Vignatti >> --- >> I started

Re: [PULL weston] minor portability fixes

2012-04-17 Thread Kristian Høgsberg
On Tue, Apr 17, 2012 at 12:02 PM, Tiago Vignatti wrote: > On 04/17/2012 03:25 PM, Pekka Paalanen wrote: >> >>       compositor: move libudev.h to evdev.h > > > this one is not correct. > > udev is used for output device discovery and hotplug. So it's not only on > input evdev. Yes, but the udev d

Re: [PATCH] weston-launch: be more descriptive with output messages

2012-04-17 Thread Benjamin Franzke
2012/4/17 Tiago Vignatti : > Specially the "either" word there is essential, so users don't confuse > thinking that both steps are needed. > > Signed-off-by: Tiago Vignatti > --- > I started to implement udev based session support for weston-launcher, after > added myself to 'weston-launch' group

Re: [PATCH] weston-launch: be more descriptive with output messages

2012-04-17 Thread Pekka Paalanen
On Tue, 17 Apr 2012 20:10:11 +0300 Tiago Vignatti wrote: > Specially the "either" word there is essential, so users don't > confuse thinking that both steps are needed. Good! > Signed-off-by: Tiago Vignatti > --- > I started to implement udev based session support for > weston-launcher, after

[PATCH] weston-launch: be more descriptive with output messages

2012-04-17 Thread Tiago Vignatti
Specially the "either" word there is essential, so users don't confuse thinking that both steps are needed. Signed-off-by: Tiago Vignatti --- I started to implement udev based session support for weston-launcher, after added myself to 'weston-launch' group and mistakenly forgot to re-ran bash. Ye

Re: [PULL weston] minor portability fixes

2012-04-17 Thread Tiago Vignatti
On 04/17/2012 03:25 PM, Pekka Paalanen wrote: compositor: move libudev.h to evdev.h this one is not correct. udev is used for output device discovery and hotplug. So it's not only on input evdev. Tiago ___ wayland-devel mailing list wayl

Re: [PATCH 3/6] desktop-shell: split protocol part from shell_surface specific functions

2012-04-17 Thread Tiago Vignatti
On 04/17/2012 08:31 AM, Juan Zhao wrote: On 04/16/2012 10:31 PM, Tiago Vignatti wrote: static void +shell_surface_set_maximized(struct wl_client *client, + struct wl_resource *resource, + struct wl_resource *output_resource ) +{ + struct shell_surface *shsurf = resource->data; + struct weston_ou

Re: [PATCH 4/6] xserver: log locally

2012-04-17 Thread Tiago Vignatti
On 04/17/2012 03:54 PM, Kristian Høgsberg wrote: On Tue, Apr 17, 2012 at 6:17 AM, Tiago Vignatti wrote: On 04/16/2012 11:41 PM, Kristian Hoegsberg wrote: On Mon, Apr 16, 2012 at 05:31:43PM +0300, Tiago Vignatti wrote: useful for weston on non-suid environments. I'm not sure about this o

Re: [PATCH 4/6] xserver: log locally

2012-04-17 Thread Kristian Høgsberg
On Tue, Apr 17, 2012 at 6:17 AM, Tiago Vignatti wrote: > On 04/16/2012 11:41 PM, Kristian Hoegsberg wrote: >> >> On Mon, Apr 16, 2012 at 05:31:43PM +0300, Tiago Vignatti wrote: >>> >>> useful for weston on non-suid environments. >> >> >> I'm not sure about this one.  We're just launching the X ser

[PULL weston] minor portability fixes

2012-04-17 Thread Pekka Paalanen
Hi Kristian, thought I'd try to flush a bit of my patch queue to you. This series contains various minor fixes to issues I've encountered while porting Weston to another platform. The following changes since commit e4faa2ab051aca454f3952f458dac42491e54954: compositor: init shell after xserve

[PATCH wayland] Fix printf format warnings

2012-04-17 Thread Pekka Paalanen
connection.c:530: warning: format '%lu' expects type 'long unsigned int', but argument 2 has type 'unsigned int' /connection.c:560: warning: format '%lu' expects type 'long unsigned int', but argument 2 has type 'unsigned int' Signed-off-by: Pekka Paalanen --- src/connection.c |4 ++-- 1 fi

Re: [PATCH 4/6] xserver: log locally

2012-04-17 Thread Tiago Vignatti
On 04/16/2012 11:41 PM, Kristian Hoegsberg wrote: On Mon, Apr 16, 2012 at 05:31:43PM +0300, Tiago Vignatti wrote: useful for weston on non-suid environments. I'm not sure about this one. We're just launching the X server, it needs to know how to start up and log in the right place. right, I

[PATCH 3/3] shell: Implement "driver" method of fullsceen.

2012-04-17 Thread zhiwen . wu
From: Alex Wu Switching display mode may happen when: 1. The fullscreen surface is at top most in fullscreen layer and with "driver" method. Shell will switch output mode to match the surface size. If no matched mode found, fall back to "fill" method. 2. The top fullscreen surface is destro

[PATCH 2/3] compositor-drm: Add switch_mode support.

2012-04-17 Thread zhiwen . wu
From: Alex Wu Implement switch_mode hook for drm backend. --- src/compositor-drm.c | 150 +- 1 files changed, 149 insertions(+), 1 deletions(-) diff --git a/src/compositor-drm.c b/src/compositor-drm.c index 4232f78..deda815 100644 --- a/src/compo

[PATCH 1/3] compositor: Add a switch_mode hook and a wrapper into the output.

2012-04-17 Thread zhiwen . wu
From: Alex Wu This allow each output backend to switch the display mode. It is useful to some applications like fullscreen game, xbmc. --- src/compositor-drm.c |1 + src/compositor-openwfd.c |1 + src/compositor-wayland.c |1 + src/compositor-x11.c |1 + src/compositor.c

[PATCH 0/3] implemented the "driver" mode fullscreen for drm backend.

2012-04-17 Thread zhiwen . wu
The following changes since commit e4faa2ab051aca454f3952f458dac42491e54954: compositor: init shell after xserver (2012-04-16 16:38:30 -0400) are available in the git repository at: g...@gitorious.org:wayland-for-krh/weston.git fs-driver Alex Wu (3): compositor: Add a switch_mode hook

Re: [PATCH 3/6] desktop-shell: split protocol part from shell_surface specific functions

2012-04-17 Thread Tiago Vignatti
On 04/17/2012 10:28 AM, Pekka Paalanen wrote: On Mon, 16 Apr 2012 17:31:42 +0300 Tiago Vignatti wrote: DE operations like toplevel, transiant, fullscreen, maximized, popup and the shell_surface constructor are the ones expected to be used in the global scope for Weston submodules like xserver-

Re: [PATCH 6/6] compositor: introduce internal shell_surface helpers

2012-04-17 Thread Ander Conselvan de Oliveira
On 04/16/2012 05:31 PM, Tiago Vignatti wrote: We're able now to create shell_surfaces inside Weston. This makes possible the glue needed between shell and xserver-launcher. Signed-off-by: Tiago Vignatti --- src/compositor.h | 24 +++- src/shell.c|8

Re: [PATCH 3/6] desktop-shell: split protocol part from shell_surface specific functions

2012-04-17 Thread Pekka Paalanen
On Mon, 16 Apr 2012 17:31:42 +0300 Tiago Vignatti wrote: > DE operations like toplevel, transiant, fullscreen, maximized, popup and the > shell_surface constructor are the ones expected to be used in the global scope > for Weston submodules like xserver-launcher and other shells. > > This commit