[PATCH] desktop-shell: Make clock format configurable

2012-06-12 Thread Martin Minarik
This allows the user to specify the format of the displayed time. It is possible to set the period of redraw (in seconds). --- clients/desktop-shell.c | 49 +++--- 1 files changed, 45 insertions(+), 4 deletions(-) diff --git a/clients/desktop-shell.c b/cl

Re: [PATCH wayland 1/4] compositor: Buffer all frame callbacks in 'weston_surface'

2012-06-12 Thread Kristian Høgsberg
On Wed, Jun 13, 2012 at 12:03:06AM +0200, Jonas Ådahl wrote: > And these should of course be to weston, not wayland. Yup, no problem. It all looks good now, committed and pushed/ Kristian > Jonas > > On Wed, Jun 13, 2012 at 12:01 AM, Jonas Ådahl wrote: > > Signed-off-by: Jonas Ådahl > > ---

Re: [PATCH wayland 1/4] compositor: Buffer all frame callbacks in 'weston_surface'

2012-06-12 Thread Jonas Ådahl
And these should of course be to weston, not wayland. Jonas On Wed, Jun 13, 2012 at 12:01 AM, Jonas Ådahl wrote: > Signed-off-by: Jonas Ådahl > --- >  src/compositor.c |   25 ++--- >  src/compositor.h |    1 - >  2 files changed, 10 insertions(+), 16 deletions(-) > > diff --

[PATCH wayland 4/4] shell: Store focus state in workspaces

2012-06-12 Thread Jonas Ådahl
When moving moving back to a workspace or resuming a locked desktop the keyboard focus state information was lost. By pushing the state to the workspace when navigating away from a workspace, or locking a desktop, we can restore it when navigating back, or resuming. Signed-off-by: Jonas Ådahl ---

[PATCH wayland 3/4] shell: Animate workspace changes

2012-06-12 Thread Jonas Ådahl
Signed-off-by: Jonas Ådahl --- Doesn't depend on weston_compositor_get_time() anymore. src/shell.c | 245 ++- 1 file changed, 241 insertions(+), 4 deletions(-) diff --git a/src/shell.c b/src/shell.c index 28cf7d4..cdd4e12 100644 --- a/sr

[PATCH wayland 2/4] shell: Virtual workspaces

2012-06-12 Thread Jonas Ådahl
A workspace is a list of top level surfaces visible at a time. New toplevel surfaces are added to the current workspace. Default keybindings (modifier - Up, modifier - Down, modifier - F1 up to F6) are used for navigating between workspaces. By default a single workspace is created. Surfaces of in

[PATCH wayland 1/4] compositor: Buffer all frame callbacks in 'weston_surface'

2012-06-12 Thread Jonas Ådahl
Signed-off-by: Jonas Ådahl --- src/compositor.c | 25 ++--- src/compositor.h |1 - 2 files changed, 10 insertions(+), 16 deletions(-) diff --git a/src/compositor.c b/src/compositor.c index 75d5ab2..de8c605 100644 --- a/src/compositor.c +++ b/src/compositor.c @@ -994,6 +

[PATCH wayland 2/2] wayland-server: Add destroy signal to wl_seat

2012-06-12 Thread Jonas Ådahl
Signed-off-by: Jonas Ådahl --- src/wayland-server.c |4 src/wayland-server.h |1 + 2 files changed, 5 insertions(+) diff --git a/src/wayland-server.c b/src/wayland-server.c index fb4e157..75f7e1f 100644 --- a/src/wayland-server.c +++ b/src/wayland-server.c @@ -622,6 +622,8 @@ wl_sea

[PATCH wayland 1/2] wayland-util: wl_list_insert_list() should accept empty lists

2012-06-12 Thread Jonas Ådahl
Signed-off-by: Jonas Ådahl --- src/wayland-util.c |3 +++ 1 file changed, 3 insertions(+) diff --git a/src/wayland-util.c b/src/wayland-util.c index eac7801..107b6db 100644 --- a/src/wayland-util.c +++ b/src/wayland-util.c @@ -79,6 +79,9 @@ wl_list_empty(struct wl_list *list) WL_EXPORT void

wcap player + wcap over the network

2012-06-12 Thread Krad Radio
A few days ago I experimented with wayland and wcap. I made a little cpu monitor with cairo and I made a wcap player for wayland and also for x11. I also experimented with wayland remoting by modifying the wcap format to include frame size, and sending over a network. It worked. I didn't have time

Re: Answer to "what happens if you build mesa with xcb-dri2 installed but not xcb-fixes?"

2012-06-12 Thread Pekka Paalanen
On Tue, 12 Jun 2012 12:33:52 -0400 dar...@chaosreigns.com wrote: > On 06/12, Prigent, Christophe wrote: > >You wanted to know what happens with libxcb-dri2-0-dev but without > >libxcb-xfixes0-dev. > > > >I saw that mesa can’t be built if this package is missing. I have the > >erro

Re: Answer to "what happens if you build mesa with xcb-dri2 installed but not xcb-fixes?"

2012-06-12 Thread darxus
On 06/12, Prigent, Christophe wrote: >You wanted to know what happens with libxcb-dri2-0-dev but without >libxcb-xfixes0-dev. > >I saw that mesa can’t be built if this package is missing. I have the >error “No package ‘xcb-xfixes’ found”. Perfect. Thank you. -- "You only truly

Answer to "what happens if you build mesa with xcb-dri2 installed but not xcb-fixes?"

2012-06-12 Thread Prigent, Christophe
Darxus, If you remember I had the following error when launching Weston on Ubuntu 10.04: "Failed to choose config: 0 Failed to create compositor" We found that installing the package libxcb-dri2-0-dev and re-building mesa solved the problem. (libxcb-xfixes0-dev was already installed on my compute

[PATCH weston 3/3] clients: don't crash weston-desktop-shell without the clock

2012-06-12 Thread Pekka Paalanen
Signed-off-by: Pekka Paalanen --- clients/desktop-shell.c |5 - 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/clients/desktop-shell.c b/clients/desktop-shell.c index 9a1b502..5a81b2c 100644 --- a/clients/desktop-shell.c +++ b/clients/desktop-shell.c @@ -419,7 +419,10 @@ p

[PATCH weston 2/3] compositor: add fallback strchrnul()

2012-06-12 Thread Pekka Paalanen
Android does not have this function. Signed-off-by: Pekka Paalanen --- configure.ac |2 +- shared/os-compatibility.c | 10 ++ shared/os-compatibility.h |5 + 3 files changed, 16 insertions(+), 1 deletions(-) diff --git a/configure.ac b/configure.ac index 7dbd9

[PATCH weston 1/3] simple-egl: move function call out of assert()

2012-06-12 Thread Pekka Paalanen
On Android, we have NDEBUG defined by the build system. Signed-off-by: Pekka Paalanen --- clients/simple-egl.c |5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/clients/simple-egl.c b/clients/simple-egl.c index 5dd44f9..4cb5bc7 100644 --- a/clients/simple-egl.c +++ b/c

Wayland Client Rendering

2012-06-12 Thread suranjana.bhattacharya
Hello, I am currently trying to build an example with Wayland Client rendering. Can any body help me with following queries? 1.What is Wayland Client rendering mechanism using cairo-gl? 2. How wyland is creating surface, window, pixmap and handling these objects while rendering? 3. Any example

RE: Unable to load cursor when weston server is loaded

2012-06-12 Thread avijit.manna
Hi Rob, On further debugging I could see the below behaviour: 1. _gdk_pixbuf_get_module receives the buffer header as:<89>PNG 2. But when it fetch the mime_type on that buffer it is getting mime_type:application/octet-stream which should be image/png. Due to this there is a type mismatch in mim

RE: Unable to load cursor when weston server is loaded

2012-06-12 Thread avijit.manna
Hi Rob, Thanks for your valuable inputs. Unfortunately the source code given by you is crashing (segmentation fault) while running in my environment. I checked the mime database. The mime database is present in /usr/share. But I am installing and using my local directory for all my source cod

Re: [PATCH wayland] make wl_fixed_t a safe type

2012-06-12 Thread Pekka Paalanen
On Mon, 4 Jun 2012 17:48:16 +0300 Pekka Paalanen wrote: > Turn wl_fixed_t into a struct type, so that it will no longer implicitly > cast into any other type. > > Silent implicit casts between wl_fixed_t and all integer types have > hidden many bugs, that the compiler could have easily cought.