Updated Ubuntu build script

2012-03-13 Thread darxus
http://www.chaosreigns.com/wayland/buildscript/ http://www.chaosreigns.com/wayland/buildscript/wayland-build-ubuntu-oneric.sh This builds and runs wayland / most of the demos, and its dependencies, from git. It should work on any linux distro, but if it's not ubuntu oneric, it won't handle some o

Ubuntu, Firefox, Chromium...

2012-03-13 Thread darxus
Wayland 0.85 is in the Ubuntu 12.04 Precise archives. Precise is scheduled to be released on April 26th. Beta 1 is available. https://launchpad.net/ubuntu/+source/wayland/ http://packages.ubuntu.com/search?suite=precise&keywords=wayland Weston was just synced from Debian to Ubuntu today: https

Re: Build problems on Ubuntu Natty (11.04)

2012-03-13 Thread Bill Spitzak
On 03/13/2012 11:38 AM, Pekka Paalanen wrote: The patch looks just what I intended, sans compositor-drm.c (if you ever want to run it without X). There is no EGL_DEPTH_SIZE in compositor-drm.c Does simple-egl run? No. Running weston, sleep 2, then simple-egl produces the following output

Re: Build problems on Ubuntu Natty (11.04)

2012-03-13 Thread Pekka Paalanen
On Tue, 13 Mar 2012 10:43:55 -0700 Bill Spitzak wrote: > On 03/13/2012 10:31 AM, Bill Spitzak wrote: > > On 03/13/2012 02:36 AM, Pekka Paalanen wrote: > > > >> Hi Bill, > >> > >> could you try commenting out the line > >> EGL_DEPTH_SIZE, 1, > >> from compositor-x11.c? > >> > >> I would very much

Re: Build problems on Ubuntu Natty (11.04)

2012-03-13 Thread Bill Spitzak
On 03/13/2012 10:31 AM, Bill Spitzak wrote: On 03/13/2012 02:36 AM, Pekka Paalanen wrote: Hi Bill, could you try commenting out the line EGL_DEPTH_SIZE, 1, from compositor-x11.c? I would very much like to know if that helps. Yes, that indeed did fix it! Weston runs now and at least the curs

Re: Build problems on Ubuntu Natty (11.04)

2012-03-13 Thread Bill Spitzak
On 03/13/2012 02:36 AM, Pekka Paalanen wrote: Hi Bill, could you try commenting out the line EGL_DEPTH_SIZE, 1, from compositor-x11.c? I would very much like to know if that helps. Yes, that indeed did fix it! Weston runs now and at least the cursor image works in the window. I will

[PATCH 5/5] compositor: only update drag surfaces during output repaint

2012-03-13 Thread Ander Conselvan de Oliveira
Drag surfaces were being updated in notify_* so that the relative distance between the drag surface and the cursor hotspot was kept. With surface attach listeners, we store this relative distance on the input device and update when necessary. Also, using a new drag icon listener, there's no need t

[PATCH 4/5] compositor: create an attach listener for weston_surfaces

2012-03-13 Thread Ander Conselvan de Oliveira
For drag icons, and possibly cursor surfaces in the future, there is a need to update information stored on the input device when an attach happens with non-zero (sx,sy). To avoid adding input specific code into surface_attach(), create a listener mechanism instead. --- src/compositor.c |6 +++

[PATCH 3/5] compositor: use new drag icon listener for setting up drag surfaces

2012-03-13 Thread Ander Conselvan de Oliveira
--- src/compositor.c | 16 src/compositor.h |2 ++ 2 files changed, 18 insertions(+), 0 deletions(-) diff --git a/src/compositor.c b/src/compositor.c index dc80764..f18386a 100644 --- a/src/compositor.c +++ b/src/compositor.c @@ -1887,6 +1887,18 @@ bind_input_device(struct

[PATCH 2/5] compositor: only update cursor sprite position on output repaint

2012-03-13 Thread Ander Conselvan de Oliveira
--- src/compositor.c | 29 +++-- src/compositor.h |2 ++ 2 files changed, 25 insertions(+), 6 deletions(-) diff --git a/src/compositor.c b/src/compositor.c index f2ae2f6..dc80764 100644 --- a/src/compositor.c +++ b/src/compositor.c @@ -901,6 +901,7 @@ weston_output_r

[PATCH wayland] data-device: notify the compositor about new drag icons

2012-03-13 Thread Ander Conselvan de Oliveira
Let the compositor use a listener to be notified when a new drag icon is set up. --- src/data-device.c|5 + src/wayland-server.c |2 ++ src/wayland-server.h |1 + 3 files changed, 8 insertions(+), 0 deletions(-) diff --git a/src/data-device.c b/src/data-device.c index 57f31ca.

[RFC] [PATCH 0/5] Update drag surface only in output repaint

2012-03-13 Thread Ander Conselvan de Oliveira
Hi, Kristian mentioned that he would like to have drag surfaces updated only during output repaint. There were some issues that made this a bit complicated and here is one possible solution. One of the issues is that the compositor would not know when a new drag icon was setup since the drag code

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

2012-03-13 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 v2 3/4] compositor-drm: Add switch_mode support.

2012-03-13 Thread zhiwen . wu
From: Alex Wu Implement switch_mode hook for drm backend. --- src/compositor-drm.c | 197 +- 1 files changed, 196 insertions(+), 1 deletions(-) diff --git a/src/compositor-drm.c b/src/compositor-drm.c index b01879f..e81b5a4 100644 --- a/src/compo

[PATCH v2 2/4] compositor: Add a switch_mode hook and a wrapper

2012-03-13 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 v2 1/4] shell: add fullscreen path for activate() and switcher

2012-03-13 Thread zhiwen . wu
From: Alex Wu For activate(), stack the surface atop fullscreen layer instead of toplevel layer. For switcher, involve the fullscreen surfaces into surface iteration, and make fullscreen surface and its black surface transparent if necessary. --- src/shell.c | 70 ++

[PATCH v2 0/4] fullscreen "driver" method implamentation patches

2012-03-13 Thread zhiwen . wu
From: Alex Wu Changes from v1: a. Improve failed path in drm_output_switch_mode() according to Herrmann's comments. b. Doing mode-set only after the fullscreen window has been raised on top of everything. c. Add struct weston_mode *origin into struct weston_output to store the original

[PATCH] event-loop: always do the post-dispatch check

2012-03-13 Thread Ander Conselvan de Oliveira
The post-dispatch check on wl_event_loop_dispatch() was not being run if epoll_wait returned 0 events, making the check unreliable. --- With the changes on Weston to process input during output repaint, this bug was actually preventing input to be processed on the X11 compositor while repaint was

Re: Build problems on Ubuntu Natty (11.04)

2012-03-13 Thread Pekka Paalanen
On Tue, 13 Mar 2012 02:06:29 -0700 Bill Spitzak wrote: > I am attempting to build the development version of Wayland, but have > not gotten a working version. I hope perhaps the problem is easy to > figure out. > > The system is Ubuntu Natty: Linux lulu 2.6.38-13-generic #56-Ubuntu SMP > Tue

RE: [PATCH 1/2] shell: Fix setting a random position when buffer size changed.

2012-03-13 Thread wuzhiwen
Sorry for re-sending this patch, you can just ignore it. >-Original Message- >From: >wayland-devel-bounces+zhiwen.wu=linux.intel@lists.freedesktop.org >[mailto:wayland-devel-bounces+zhiwen.wu=linux.intel.com@lists.freedesktop.o >rg] On Behalf Of zhiwen...@linux.intel.com >Sent: Tuesday

[PATCH 1/2] shell: Fix setting a random position when buffer size changed.

2012-03-13 Thread zhiwen . wu
From: Alex Wu When the configure() is triggered by a change of buffer size, a toplevel surface which has not ever been switched to maximazied or fullscreen will set a random position. Modified the position restoring logic for toplevel surface. Store the surface position when it switches from top

Build problems on Ubuntu Natty (11.04)

2012-03-13 Thread Bill Spitzak
I am attempting to build the development version of Wayland, but have not gotten a working version. I hope perhaps the problem is easy to figure out. The system is Ubuntu Natty: Linux lulu 2.6.38-13-generic #56-Ubuntu SMP Tue Feb 14 12:40:40 UTC 2012 i686 i686 i386 GNU/Linux It is a really o

Re: wayland on embedded

2012-03-13 Thread Pekka Paalanen
On Mon, 12 Mar 2012 14:51:15 -0700 L A wrote: > I am working on a gles2/egl device (similar to Raspberry Pi) with a > propriety display driver. What would it take to run Wayland on it? Is > it possible to directly go to gles2/egl (no dri, no mesa)? Also do I > really need xcb, glib (... etc) or w

Re: [PATCH 2/3] compositor: fix option types

2012-03-13 Thread Pekka Paalanen
On Mon, 12 Mar 2012 19:06:39 -0300 Tiago Vignatti wrote: > Basically all integer options should be set as unsigned integers instead. > Funny that WESTON_OPTION_INTEGER is not being used anywhere now. > > Signed-off-by: Tiago Vignatti > --- > clients/eventdemo.c |8 > src/comp

Re: [PATCH 1/3] parser: be more pick for integer values

2012-03-13 Thread Pekka Paalanen
On Mon, 12 Mar 2012 19:06:38 -0300 Tiago Vignatti wrote: > It was accepting "-i=3", "-i=3/2", "--idle-time=*3" and similar unwanted type > of arguments, giving wrong impression for the user. Now it explicitly ignores. > > Signed-off-by: Tiago Vignatti > --- > these three patches are here: > htt