[PATCH weston 7/8] compositor: move texture_damage into renderer private

2012-11-23 Thread Pekka Paalanen
Only the gl_renderer uses this field. Signed-off-by: Pekka Paalanen ppaala...@gmail.com --- src/compositor.c |3 --- src/compositor.h |1 - src/gl-renderer.c | 15 +-- 3 files changed, 9 insertions(+), 10 deletions(-) diff --git a/src/compositor.c b/src/compositor.c

[PATCH weston 8/8] clients: destroy wl_registry on exit

2012-11-23 Thread Pekka Paalanen
Plug an insignificant memory leak in demo programs that bother to clean up at all. Signed-off-by: Pekka Paalanen ppaala...@gmail.com --- clients/simple-egl.c |1 + clients/simple-shm.c |1 + clients/window.c |1 + 3 files changed, 3 insertions(+), 0 deletions(-) diff --git

Re: [PATCH weston] xwm: Fix opaque region system.

2012-11-24 Thread Pekka Paalanen
On Sat, 24 Nov 2012 03:56:25 +1100 Daniel Stone dan...@fooishbar.org wrote: Hi Pekka, On 23 November 2012 18:35, Pekka Paalanen ppaala...@gmail.com wrote: \Weston_surface:opaque is referenced only in the transform_disable() path, because we never bothered to write an algorithm

[PATCH weston] gl, rpi: consolidate print_egl_error_state()

2012-11-27 Thread Pekka Paalanen
Rename print_egl_error_state() to gl_renderer_print_egl_error_state() and exports it. Remove the copy of that function from the rpi backend, and call the exported function instead. Signed-off-by: Pekka Paalanen ppaala...@gmail.com --- src/compositor-rpi.c | 40

[PATCH weston 1/2] man: add weston-drm page

2012-11-27 Thread Pekka Paalanen
Add some documentation about the DRM backend into its own man page, and refer to it in weston(1). Environment variable, that are reserved for backends, and currently used only by the DRM backend, are moved to weston-drm page. NOTE: This is a candidate for the stable branch Signed-off-by: Pekka

[PATCH weston 2/2] man: fill missing pieces to weston page

2012-11-27 Thread Pekka Paalanen
Config file, WAYLAND_SOCKET, XDG_CONFIG_HOME, segfault handler. NOTE: This is a candidate for the stable branch Signed-off-by: Pekka Paalanen ppaala...@gmail.com --- man/weston.man | 27 ++- 1 files changed, 26 insertions(+), 1 deletions(-) diff --git a/man/weston.man

Re: [PATCH weston] rpi: Don't assign planes for surfaces with transformed buffers

2012-11-27 Thread Pekka Paalanen
On Tue, 27 Nov 2012 17:34:52 +0200 Ander Conselvan de Oliveira ander.conselvan.de.olive...@intel.com wrote: Reported-by: Pekka Paalanen ppaala...@gmail.com --- Hi, Pekka noted that we also need this for correctness. Looking good. Thanks! - pq src/compositor-rpi.c |6 ++ 1 file

Re: [PATCH 0/5] Scanning out buffers with transformed outputs

2012-11-28 Thread Pekka Paalanen
On Tue, 27 Nov 2012 12:29:20 -0800 Bill Spitzak spit...@gmail.com wrote: Ander Conselvan de Oliveira wrote: Hi, This series adds support for scanning out a fullscreen client buffer when the output is rotated. A Wayland patch adds a request for setting the buffer transform, which the

Re: [PATCH weston 1/6] window: make display_create_surface() shm-only

2012-11-28 Thread Pekka Paalanen
On Tue, 27 Nov 2012 16:05:13 -0500 Kristian Høgsberg hoegsb...@gmail.com wrote: On Mon, Nov 19, 2012 at 05:15:57PM +0200, Pekka Paalanen wrote: Nothing uses it to create EGL-surfaces outside of window.c. This makes refactoring the EGL-based code easier, since we do not need to support EGL

Re: [PATCH weston 1/8] compositor: do not release if re-attaching buffer

2012-11-28 Thread Pekka Paalanen
On Fri, 23 Nov 2012 15:56:50 +0200 Pekka Paalanen ppaala...@gmail.com wrote: If a client called wl_surface.attach with the same wl_buffer as previously, the compositor would mistakenly send a release on that buffer. This will cause problems only when clients start to properly use

Re: [PATCH weston 2/8] compositor: add and export weston_buffer_reference()

2012-11-28 Thread Pekka Paalanen
On Wed, 28 Nov 2012 09:49:18 -0500 Kristian Høgsberg hoegsb...@gmail.com wrote: On Fri, Nov 23, 2012 at 03:56:51PM +0200, Pekka Paalanen wrote: The wl_buffer reference counting API has been inconsistent. You would manually increment the refcount and register a destroy listener, as opposed

[PATCH weston 2/2] Fix build warnings from image_loader

2012-11-30 Thread Pekka Paalanen
: implicit declaration of function 'load_image' compositor-wayland.c:97:8: warning: assignment makes pointer from integer without a cast Signed-off-by: Pekka Paalanen ppaala...@gmail.com --- shared/cairo-util.h |1 + shared/image-loader.c|2 +- src/Makefile.am |4

Versioning (Re: [PATCH mesa] egl/wayland: Dispatch the event queue before get_buffers)

2012-12-03 Thread Pekka Paalanen
On Fri, 30 Nov 2012 17:15:44 -0500 Kristian Høgsberg hoegsb...@gmail.com wrote: ... On Fri, Nov 23, 2012 at 09:49:58PM -0500, Kristian Høgsberg wrote: We need to either require wayland 1.0.2 in configure.ac or make this call conditionaly on wayland version 1.0.2. We have

Re: [PATCH weston 6/6] window: honour wl_buffer.release

2012-12-03 Thread Pekka Paalanen
On Tue, 27 Nov 2012 15:57:30 -0500 Kristian Høgsberg hoegsb...@gmail.com wrote: On Mon, Nov 19, 2012 at 05:16:02PM +0200, Pekka Paalanen wrote: Listen for wl_buffer.release events in the shm path, and if a previously posted buffer is still held by the server, allocate another one

[PATCH wayland] tests: rename temporary files

2012-12-03 Thread Pekka Paalanen
This is libwayland, not weston, so call the temporary files wayland-tests-*, not weston-tests-*. This is a candidate for the stable branch. Signed-off-by: Pekka Paalanen ppaala...@gmail.com --- tests/connection-test.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git

Re: seat_get_touch not being called

2012-12-04 Thread Pekka Paalanen
On Mon, 3 Dec 2012 20:45:14 + Keller Alexander-B42067 b42...@freescale.com wrote: I have been trying to get my touchscreen inputs to work on Wayland, and everytime the screen is touched I get an error saying couldn't find resource. I get that error because my seat-touch-resource_list is

[PATCH v2 weston 0/7] Server side wl_buffer.release

2012-12-04 Thread Pekka Paalanen
-drm patch is squashed - clients: destroy wl_registry on exit has been left to be sent on its own - preserve and comment on gs-pitch initialisation, I missed it the last time Pekka Paalanen (7): compositor: do not release if re-attaching buffer compositor: do not flush shm buffer on destroy

[PATCH v2 weston 1/7] compositor: do not release if re-attaching buffer

2012-12-04 Thread Pekka Paalanen
again. Signed-off-by: Pekka Paalanen ppaala...@gmail.com --- src/compositor.c |8 +--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/compositor.c b/src/compositor.c index 565212d..88a37f7 100644 --- a/src/compositor.c +++ b/src/compositor.c @@ -912,16 +912,18

[PATCH v2 weston 2/7] compositor: do not flush shm buffer on destroy

2012-12-04 Thread Pekka Paalanen
, that a client must not destroy a buffer that is being read by the server, or the window contents become undefined. The practical reason for this change is that the following commit can consolidate wl_buffer destruction listener handlers. Signed-off-by: Pekka Paalanen ppaala...@gmail.com --- src

[PATCH v2 weston 3/7] compositor: introduce weston_buffer_reference

2012-12-04 Thread Pekka Paalanen
will send a release event. Often the buffer is already destroyed on client side, so the event will be discarded by libwayland-client. Compositor-drm.c is converted to use weston_buffer_reference. Signed-off-by: Pekka Paalanen ppaala...@gmail.com --- src/compositor-drm.c | 56

[PATCH v2 weston 5/7] compositor: add early wl_buffer.release

2012-12-04 Thread Pekka Paalanen
would be better than the keep_buffer flag, but that would require a per-surface backend private. The rpi and DRM backends are updated to set keep_buffer, other backends do not support planes, so do not have to set it. Signed-off-by: Pekka Paalanen ppaala...@gmail.com --- src/compositor-drm.c

[PATCH v2 weston 7/7] compositor: move texture_damage into renderer private

2012-12-04 Thread Pekka Paalanen
Only the gl_renderer uses this field. Signed-off-by: Pekka Paalanen ppaala...@gmail.com --- src/compositor.c |3 --- src/compositor.h |1 - src/gl-renderer.c | 15 +-- 3 files changed, 9 insertions(+), 10 deletions(-) diff --git a/src/compositor.c b/src/compositor.c

[PATCH weston 1/2] clients: destroy wl_registry on exit

2012-12-04 Thread Pekka Paalanen
Plug an insignificant memory leak in demo programs that bother to clean up at all. Signed-off-by: Pekka Paalanen ppaala...@gmail.com --- clients/simple-egl.c |1 + clients/simple-shm.c |1 + clients/window.c |1 + 3 files changed, 3 insertions(+), 0 deletions(-) diff --git

Re: Wayland and Weston 1.0

2012-12-05 Thread Pekka Paalanen
On Tue, 4 Dec 2012 16:33:56 +0100 (CET) Jan Engelhardt jeng...@inai.de wrote: On Wednesday 2012-10-24 13:51, Pekka Paalanen wrote: A few folks around me, and myself included, have pondered... It would seem that wayland and its possible compositors all require 3D support, which may

Re: [PATCH weston 5/9] tests: Add weston test client helper methods

2012-12-05 Thread Pekka Paalanen
On Tue, 4 Dec 2012 14:22:11 -0800 U. Artie Eoff ullysses.a.e...@intel.com wrote: From: U. Artie Eoff ullysses.a.e...@intel.com Add client boiler plate methods to simplify writing tests that use the weston test extension. Signed-off-by: U. Artie Eoff ullysses.a.e...@intel.com ---

Sub-surface protocol

2012-12-05 Thread Pekka Paalanen
Hi all, I am currently looking into sub-surfaces, first to sketch the protocol extension, and I have some open questions. I decided to write an exhaustive document, so we would all be on the same page, and also to clarify my own thoughts. Introduction Sub-surfaces are additional wl_surface

Re: [PATCH v2 weston 0/7] Server side wl_buffer.release

2012-12-06 Thread Pekka Paalanen
On Thu, 6 Dec 2012 16:59:06 -0500 Kristian Høgsberg hoegsb...@gmail.com wrote: On Tue, Dec 04, 2012 at 03:58:09PM +0200, Pekka Paalanen wrote: Hi Kristian, this is the rebased and modifed version of the server side wl_buffer.release series. Changes since v1: - rebased - added

Re: get started

2012-12-07 Thread Pekka Paalanen
On Fri, 7 Dec 2012 12:53:36 +0530 Selva kumar selva.develo...@gmail.com wrote: how to get started with learning wayland and weston. what is the significance of protocol xml file? can anyone provide an idea of how wayland is organized. like little deep arhcitecture diagram? Hi, read through

Re: Sub-surface protocol

2012-12-07 Thread Pekka Paalanen
On Wed, 05 Dec 2012 15:43:18 -0200 Tiago Vignatti tiago.vigna...@linux.intel.com wrote: Hi, On 12/05/2012 12:32 PM, Pekka Paalanen wrote: I have not even thought about sub-surfaces' implications to input handling or the shell yet. Sub-surfaces probably need to be able to receive input

Re: Sub-surface protocol

2012-12-07 Thread Pekka Paalanen
On Wed, 05 Dec 2012 22:45:14 -0800 Bill Spitzak spit...@gmail.com wrote: Pekka Paalanen wrote: I am currently looking into sub-surfaces, first to sketch the protocol extension, and I have some open questions. I decided to write an exhaustive document, so we would all be on the same page

Re: Sub-surface protocol

2012-12-07 Thread Pekka Paalanen
On Fri, 7 Dec 2012 12:34:46 +0200 Pekka Paalanen ppaala...@gmail.com wrote: On Wed, 05 Dec 2012 22:45:14 -0800 Bill Spitzak spit...@gmail.com wrote: Committing changes I think it may work that a commit on a parent is an implied commit on all the children. To make a set of child

[PATCH weston] shared: fix matrix build failure

2012-12-07 Thread Pekka Paalanen
and every module will link to the static helper library, and get its own copy of the functions. Signed-off-by: Pekka Paalanen ppaala...@gmail.com --- shared/matrix.c | 13 ++--- shared/matrix.h |2 +- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/shared/matrix.c b

SIGBUS on wl_shm clients (Re: Newest git version of Wayland is even worse)

2012-12-08 Thread Pekka Paalanen
On Fri, 07 Dec 2012 10:39:41 -0800 Bill Spitzak spit...@gmail.com wrote: Okay the newest version does not even run simple-shm for me. I hope somebody has a hint as to what is wrong and how to fix it, as I am very interested in wayland development but rather limited as long as I cannot test

Re: [PATCH weston v2 4/6] tests: Convert keyboard-test to new test extension

2012-12-08 Thread Pekka Paalanen
On Fri, 7 Dec 2012 13:50:32 -0800 U. Artie Eoff ullysses.a.e...@intel.com wrote: From: U. Artie Eoff ullysses.a.e...@intel.com This adds a weston-test-runner for the weston test extension and some weston test client helper methods. Converted keyboard-test to use the new test interface,

Re: SIGBUS on wl_shm clients (Re: Newest git version of Wayland is even worse)

2012-12-09 Thread Pekka Paalanen
On Sat, 8 Dec 2012 17:52:46 -0500 dar...@chaosreigns.com wrote: On 12/08, Bill Spitzak wrote: On 12/08/2012 12:23 AM, Pekka Paalanen wrote: FWIW, I have seen a bus error (SIGBUS) before. One way to trigger it is to run out of space on the tmpfs, where your XDG_RUNTIME_DIR points

Re: SIGBUS on wl_shm clients (Re: Newest git version of Wayland is even worse)

2012-12-10 Thread Pekka Paalanen
On Sun, 09 Dec 2012 16:50:54 -0800 Bill Spitzak spit...@gmail.com wrote: Another question: I thought XDG_RUNTIME_DIR was being used for the locks and sockets and other status indicators. I expected large shm buffers to go to some more-standard place (though I don't know what the Linux

Re: [PATCH weston v2 4/6] tests: Convert keyboard-test to new test extension

2012-12-10 Thread Pekka Paalanen
On Sun, 9 Dec 2012 15:43:18 + Eoff, Ullysses A ullysses.a.e...@intel.com wrote: -Original Message- From: Pekka Paalanen [mailto:ppaala...@gmail.com] On Fri, 7 Dec 2012 13:50:32 -0800 U. Artie Eoff ullysses.a.e...@intel.com wrote: +void +yield(struct client *client

Re: [PATCH weston v2 0/6] Wayland/Weston Test Extension

2012-12-11 Thread Pekka Paalanen
On Tue, 11 Dec 2012 23:31:37 -0500 Kristian Høgsberg hoegsb...@gmail.com wrote: On Fri, Dec 07, 2012 at 01:50:28PM -0800, U. Artie Eoff wrote: From: U. Artie Eoff ullysses.a.e...@intel.com Define a relatively generic protocol for a Wayland Test Extension. Provide a Weston

[PATCH weston 3/4] tests: set client log handler

2012-12-12 Thread Pekka Paalanen
Otherwise we cannot normally see protocol errors etc. in the test output. Signed-off-by: Pekka Paalanen ppaala...@gmail.com --- tests/weston-test-client-helper.c |9 + 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/tests/weston-test-client-helper.c b/tests/weston

[PATCH weston 4/4] tests: check wl_display_roundtrip() for errors

2012-12-12 Thread Pekka Paalanen
Add a macro that wraps wl_display_roundtrip() and check for errors. It is a macro, so that the assert would show the relevant file and line number. This will also catch protocol errors, that would go unnoticed otherwise. All roundtrips in tests are replaced with the check. Signed-off-by: Pekka

Re: [PATCH weston 1/4] tests: write logs to files

2012-12-12 Thread Pekka Paalanen
On Wed, 12 Dec 2012 14:26:38 +0200 Pekka Paalanen ppaala...@gmail.com wrote: This cleans up the 'make check' output considerably. When all goes well, you will only see the PASS line for each of $TESTS. Weston logs into a separate file than stdout and stderr, so server logs end up in one

Re: [PATCH wayland] protocol: Add set_xwayland request for new shell surface type

2012-12-12 Thread Pekka Paalanen
Hi Tiago, I have some questions below. Sorry for this being the only patch of the series I can look at for now. On Wed, 12 Dec 2012 13:26:33 -0200 Tiago Vignatti tiago.vigna...@intel.com wrote: X11 apps use global coordinates most of the time for window placement and the current approach we

[PATCH weston] tests: remove test logs on 'make clean'

2012-12-13 Thread Pekka Paalanen
Signed-off-by: Pekka Paalanen ppaala...@gmail.com --- tests/Makefile.am |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/tests/Makefile.am b/tests/Makefile.am index 05d5d00..7d6b6e0 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -12,6 +12,9 @@ weston_tests

Re: [PATCH weston 1/4] tests: write logs to files

2012-12-13 Thread Pekka Paalanen
On Wed, 12 Dec 2012 10:58:31 -0500 Kristian Høgsberg hoegsb...@gmail.com wrote: On Wed, Dec 12, 2012 at 02:44:52PM +0200, Pekka Paalanen wrote: On Wed, 12 Dec 2012 14:26:38 +0200 Pekka Paalanen ppaala...@gmail.com wrote: This cleans up the 'make check' output considerably. When all

Re: Sub-surface protocol

2012-12-13 Thread Pekka Paalanen
On Wed, 12 Dec 2012 14:22:49 + Daniel Stone dan...@fooishbar.org wrote: Hi, On 6 December 2012 01:32, Pekka Paalanen ppaala...@gmail.com wrote: Clipping The term sub-surface sounds like a sub-window, which may cause one to think, that it will be clipped to the parent surface

Re: Sub-surface protocol

2012-12-13 Thread Pekka Paalanen
Hi John, On Thu, 13 Dec 2012 14:51:17 +0100 John Kåre Alsaker john.kare.alsa...@gmail.com wrote: Here is my subsurface proposal. I don't like video sinks (or other things) running on an independent framerate. I don't want to maintain more state in the compositor side for them or have

Re: [PATCH wayland] protocol: Add set_xwayland request for new shell surface type

2012-12-14 Thread Pekka Paalanen
On Thu, 13 Dec 2012 15:10:25 -0800 Bill Spitzak spit...@gmail.com wrote: Tiago Vignatti wrote: About the availability of it to regular Wayland clients, I agree, it's a problem. Bill Spitzak pointed this out on the previous set. It sets a bad example because it exposes global position

Re: Sub-surface protocol

2012-12-14 Thread Pekka Paalanen
On Thu, 13 Dec 2012 14:47:57 -0800 Bill Spitzak spit...@gmail.com wrote: FLOATING WINDOWS: PLEASE consider reusing this code for floating windows. THEY ARE THE SAME THING!!! The only difference is that the compositor can insert other surfaces between floating children and the parent.

Re: Sub-surface protocol

2012-12-14 Thread Pekka Paalanen
On Thu, 13 Dec 2012 12:33:33 -0500 Kristian Høgsberg hoegsb...@gmail.com wrote: On Thu, Dec 13, 2012 at 04:07:44PM +0100, John Kåre Alsaker wrote: On Thu, Dec 13, 2012 at 3:30 PM, Pekka Paalanen ppaala...@gmail.com wrote: On Thu, 13 Dec 2012 14:51:17 +0100 John Kåre Alsaker

Re: libwayland and Java

2012-12-18 Thread Pekka Paalanen
On Mon, 17 Dec 2012 12:17:48 -0600 Jason Ekstrand ja...@jlekstrand.net wrote: I'll send out an e-mail later about API ideas once I have more time. I've got an idea of what I'd like to see but I haven't had a chance to write it down and formalize it yet. ... I'm sorry if that got a bit

Re: Sub-surface protocol

2012-12-18 Thread Pekka Paalanen
On Mon, 17 Dec 2012 15:47:43 + Richard Hughes hughsi...@gmail.com wrote: On 5 December 2012 14:32, Pekka Paalanen ppaala...@gmail.com wrote: One of the most important use cases is a video player in a window. It has XRGB or ARGB window decorations, usually the video content in YUV

[PATCH weston 2/4] compositor: introduce weston_surface_geometry_dirty()

2012-12-18 Thread Pekka Paalanen
Instead of directly setting the dirty flag on weston_surface geometry, use a function for that. This allows us to hook into geometry dirtying in following patches. Also add comments to weston_surface fields, whose modification causes transform state to become outdated. Signed-off-by: Pekka

[PATCH weston 3/4] compositor: put weston_matrix_pointer into transformation_list

2012-12-18 Thread Pekka Paalanen
to another matrix, without adding hooks to maintain a copy of that matrix. Signed-off-by: Pekka Paalanen ppaala...@gmail.com --- src/compositor.c | 18 +++--- src/compositor.h | 27 +++ src/shell.c | 49

[PATCH weston 4/4] compositor: popup inherits surface transformation

2012-12-18 Thread Pekka Paalanen
geometry dirty: only the immediate children will need to be signalled. Implement the popup surface transformation by inheritance instead of copy. Now, if we moved the popup's parent surface while the popup is open, the popup surface will stick to the parent properly. Signed-off-by: Pekka Paalanen ppaala

[TEST HACK weston] A quick hack for testing surface transform inheritance

2012-12-18 Thread Pekka Paalanen
When you apply this patch, you can observe the surface transform inheritance in action like this: 1. open any toytoolkit application that has decorations, e.g. cliptest 2. open a menu from the title with the right mouse button, and leave it open 3. use the surface move hotkey

Re: [PATCH weston 2/4] compositor: introduce weston_surface_geometry_dirty()

2012-12-18 Thread Pekka Paalanen
On Tue, 18 Dec 2012 07:24:17 -0700 Scott Moreau ore...@gmail.com wrote: On Tue, Dec 18, 2012 at 4:58 AM, Pekka Paalanen ppaala...@gmail.com wrote: Instead of directly setting the dirty flag on weston_surface geometry, use a function for that. This allows us to hook into geometry

[PATCH weston] tests: make signal other than ABRT a hard failure

2012-12-18 Thread Pekka Paalanen
to fail. We would probably need more sophistication for the FAIL_TEST cases. For now, just interpret any other signal than ABRT as a hard failure, regardless whether it is a TEST or FAIL_TEST. At least segfaults do not cause false passes anymore. Signed-off-by: Pekka Paalanen ppaala...@gmail.com

Re: [PATCH weston] tests: make signal other than ABRT a hard failure

2012-12-18 Thread Pekka Paalanen
Paalanen Sent: Tuesday, December 18, 2012 7:30 AM To: wayland-devel@lists.freedesktop.org Cc: Pekka Paalanen Subject: [PATCH weston] tests: make signal other than ABRT a hard failure We handle FAIL_TEST tests by simply inverting the success flag. The problem with this is, that if a FAIL_TEST

Re: Wayland and Weston 1.0.3 releases out

2012-12-18 Thread Pekka Paalanen
On Wed, 19 Dec 2012 02:18:32 +0100 (CET) Jan Engelhardt jeng...@inai.de wrote: On Friday 2012-12-14 23:20, Kristian Høgsberg wrote: f71a3fb5b6534cce35ac7456a5fd540fc3806fc1 wayland-1.0.3.tar.xz ce1f41251a07600ed8c6b2e3dc1e868008aeb33a wayland 1.0.3 tag

Re: Wayland and Weston 1.0.3 releases out

2012-12-19 Thread Pekka Paalanen
On Wed, 19 Dec 2012 09:20:18 +0100 (CET) Jan Engelhardt jeng...@inai.de wrote: On Wednesday 2012-12-19 08:27, Pekka Paalanen wrote: make[3]: Entering directory `/home/abuild/rpmbuild/BUILD/weston-1.0.3/tests' FAIL: surface-test.la

Re: [PATCH weston 4/4] compositor: popup inherits surface transformation

2012-12-19 Thread Pekka Paalanen
On Wed, 19 Dec 2012 15:52:03 -0800 Bill Spitzak spit...@gmail.com wrote: This need to make a tree of transform inheritances is a good indication that the subsurfaces will need to be done with a parent pointer, as I proposed. A list does not contain this information and would prevent

[PATCH weston] shell: remove remnants of screensaver surface list

2012-12-20 Thread Pekka Paalanen
The list became stale probably when the lock_layer was introduced. Now one less (ab)user of weston_surface::link. Also add a comment on screensaver_configure(), that it is (and has been) broken for pre-started screensavers. Signed-off-by: Pekka Paalanen ppaala...@gmail.com --- src/shell.c

Re: [PATCH weston 4/4] compositor: popup inherits surface transformation

2012-12-21 Thread Pekka Paalanen
On Thu, 20 Dec 2012 14:15:56 -0800 Bill Spitzak spit...@gmail.com wrote: Pekka Paalanen wrote: No, I don't think it will work. The set of surfaces, which is a main surface (parent) and its sub-surfaces, forms a single solid window for all window management purposes. The bounding box

[RFC] Sub-surface protocol and implementation v1

2012-12-21 Thread Pekka Paalanen
-v1 The following changes since commit 812bd4dd0fb20161aaf07029fbd6146d530b9932: client: remove two unused function pointer typedefs (2012-12-12 11:04:53 -0500) are available in the git repository at: git://git.collabora.co.uk/git/user/pq/wayland.git subsurface-v1 Pekka Paalanen (1

[PATCH wayland] protocol: add sub-surfaces

2012-12-21 Thread Pekka Paalanen
Add protocol for sub-surfaces, wl_subcompositor as the global interface, and wl_subsurface as the per-surface interface extension. Signed-off-by: Pekka Paalanen ppaala...@gmail.com --- protocol/wayland.xml | 122 ++ 1 files changed, 122 insertions

[PATCH weston 2/5] tests: add sub-surface protocol tests

2012-12-21 Thread Pekka Paalanen
For testing the protocol behaviour only: - linking a surface to a parent does not fail - position and placement requests do not fail - bad linking and arguments do fail - passing a surface as a sibling from a different set fails - different destruction sequences do not crash Signed-off-by: Pekka

[PATCH weston 3/5] compositor: add sub-surfaces to repaint list

2012-12-21 Thread Pekka Paalanen
. This should not change anything. Signed-off-by: Pekka Paalanen ppaala...@gmail.com --- src/compositor.c | 59 + 1 files changed, 45 insertions(+), 14 deletions(-) diff --git a/src/compositor.c b/src/compositor.c index e7e1360..270b196 100644

[PATCH weston 5/5] clients: add a demo for sub-surfaces

2012-12-21 Thread Pekka Paalanen
So far just very basic, creating one sub-surface and painting it red. Signed-off-by: Pekka Paalanen ppaala...@gmail.com --- clients/.gitignore|1 + clients/Makefile.am |4 + clients/subsurfaces.c | 239 + 3 files changed, 244

Re: [PATCH weston 1/5] compositor: introduce sub-surfaces

2012-12-21 Thread Pekka Paalanen
On Fri, 21 Dec 2012 14:04:00 +0200 Pekka Paalanen ppaala...@gmail.com wrote: src/compositor.c | 366 ++ src/compositor.h | 20 +++ 2 files changed, 386 insertions(+), 0 deletions(-) diff --git a/src/compositor.c b/src/compositor.c

Re: [PATCH weston 3/5] compositor: add sub-surfaces to repaint list

2012-12-21 Thread Pekka Paalanen
On Fri, 21 Dec 2012 14:04:02 +0200 Pekka Paalanen ppaala...@gmail.com wrote: Modify surface list rebuilding in weston_output_repaint() to process sub-surface lists, if they are non-empty. The sub-surface list always contains the parent, too, if not empty. The collection

Re: Window stacking diagram

2012-12-31 Thread Pekka Paalanen
On Sun, 30 Dec 2012 16:29:09 -0800 Bill Spitzak spit...@gmail.com wrote: Not sure how useful this is, but I made a graph showing the necessary window transitions that Wayland should support, in an attempt to show why layers are not sufficient. In this example window C must always remain

Re: libwayland and Java

2013-01-04 Thread Pekka Paalanen
On Fri, 28 Dec 2012 17:16:40 -0600 Jason Ekstrand ja...@jlekstrand.net wrote: PQ et. al., Hi Jason I've finally found the time to sit down and draft up my proposal for how events and requests get handled to make it easier to write language bindings. As a word of disclaimer, I've tried to

Re: Weston on RPi: running as non-root

2013-01-04 Thread Pekka Paalanen
On Fri, 04 Jan 2013 10:32:43 +0200 Mika Boström mika.bost...@nomovok.com wrote: On 01/03/13 20:46, Kristian Høgsberg wrote: Yep. Non-root user doesn't have permission to connect to Wayland socket. Weston will create the socket with permissions so that only the user weston runs as can

Re: [PATCH] protocol: Add wl_shell_surface_set_notification

2013-01-04 Thread Pekka Paalanen
On Thu, 27 Dec 2012 11:36:43 -0200 Tiago Vignatti tiago.vigna...@linux.intel.com wrote: Hi. I'm afraid that notification windows and tooltips are quite similar. I've built tooltip on toytoolkit using set_transient surface type, using the inactive method (for not giving focus on it). So

Re: Weston on RPi: running as non-root

2013-01-04 Thread Pekka Paalanen
On Fri, 04 Jan 2013 13:47:12 +0200 Mika Boström mika.bost...@nomovok.com wrote: On 01/04/13 13:30, Pekka Paalanen wrote: That is strange. Why does Weston need any root access for you? Are you perhaps running it via remote login, not local? That could be it. I'm doing everything I can over

Re: [PATCH] shell: Implement wl_shell_surface_set_notification

2013-01-04 Thread Pekka Paalanen
On Wed, 26 Dec 2012 19:00:25 +0100 Quentin Glidic sardemff7+...@sardemff7.net wrote: --- src/shell.c | 141 ++-- weston.ini | 5 +++ 2 files changed, 143 insertions(+), 3 deletions(-) Apart from some style issues, this patch looks

Re: [PATCH] protocol: Add wl_shell_surface_set_notification

2013-01-04 Thread Pekka Paalanen
On Fri, 04 Jan 2013 15:27:55 +0100 Quentin Glidic sardemff7+wayl...@sardemff7.net wrote: On 04/01/2013 14:25, Pekka Paalanen wrote: This is a good start. There are some further questions, which might affect the needed protocol, just food for thought for the future: I’m not a big fan

Re: [PATCH weston 4/5] shell: keyboard focus with sub-surfaces

2013-01-04 Thread Pekka Paalanen
On Fri, 21 Dec 2012 14:04:03 +0200 Pekka Paalanen ppaala...@gmail.com wrote: The shell needs to redirect some actions to the parent surface, when they originally target a sub-surface. This patch implements the following: - When the activation binding (left button click) targets a sub-surface

Re: Apparent impass between GTK+ and Ubuntu on Wayland backend

2013-01-06 Thread Pekka Paalanen
On Sun, 6 Jan 2013 01:13:31 -0500 dar...@chaosreigns.com wrote: Ubuntu said they're not willing to have their GTK+ package depend on a Wayland package (when using GTK+ only with X), requesting the Wayland backend be moved out to a dynamically loadable library:

Re: [RFC] Sub-surface protocol and implementation v1

2013-01-07 Thread Pekka Paalanen
Hi John, thanks for the comments, I have some more questions about your suggestions. On Mon, 7 Jan 2013 16:56:47 +0100 John Kåre Alsaker john.kare.alsa...@gmail.com wrote: On Fri, Dec 21, 2012 at 12:56 PM, Pekka Paalanen ppaala...@gmail.com wrote: Hi all, we started a discussion about

Re: Creating a Window Manager to use Wayland (that's not in C)

2013-01-08 Thread Pekka Paalanen
On Mon, 07 Jan 2013 21:24:44 -0800 kristof sapos...@myopera.com wrote: I'm planning on creating a rather minimal Haskell based compositor/window-manager for use with the Wayland display server protocol. After some reading, I've come to the conclusion that I need to create a Haskell API

Re: [PATCH v2 2/2] x11 backend: add option to use pixman renderer

2013-01-08 Thread Pekka Paalanen
On Mon, 7 Jan 2013 13:49:38 -0500 Kristian Høgsberg hoegsb...@gmail.com wrote: On Mon, Jan 07, 2013 at 08:39:50PM +0300, Vasily Khoruzhick wrote: When --use-shm is passed to weston and x11 backend is active, it will use SHM surfaces with pixman renderer instead of EGL Signed-off-by:

Re: [RFC] Sub-surface protocol and implementation v1

2013-01-09 Thread Pekka Paalanen
be presented in a number of adjacent subsurfaces. This would simplify input handling by a lot. - Allow clients to commit a set of surfaces. On Tue, Jan 8, 2013 at 8:50 AM, Pekka Paalanen ppaala...@gmail.com wrote: Hi John, thanks for the comments, I have some more questions about your

Re: [RFC] Sub-surface protocol and implementation v1

2013-01-10 Thread Pekka Paalanen
On Wed, 9 Jan 2013 18:14:12 +0100 John Kåre Alsaker john.kare.alsa...@gmail.com wrote: On Wed, Jan 9, 2013 at 10:53 AM, Pekka Paalanen ppaala...@gmail.com wrote: On Tue, 8 Jan 2013 21:50:20 +0100 John Kåre Alsaker john.kare.alsa...@gmail.com wrote: My goals for a subsurface

[PATCH weston] gl: fix read-back format reporting in the log

2013-01-10 Thread Pekka Paalanen
weston_compositor::read_format is in Pixman values now, so comparing to a GL value does not work. Compare to the right value. This fix affects only the log output of the GL renderer. Signed-off-by: Pekka Paalanen ppaala...@gmail.com --- src/gl-renderer.c |2 +- 1 files changed, 1 insertions

Re: [RFC] Sub-surface protocol and implementation v1

2013-01-11 Thread Pekka Paalanen
On Thu, 10 Jan 2013 21:54:50 +0100 John Kåre Alsaker john.kare.alsa...@gmail.com wrote: On Thu, Jan 10, 2013 at 9:49 AM, Pekka Paalanen ppaala...@gmail.com wrote: However, the dummy surface as the root surface (i.e. the window main surface) will not work, because it is the surface the shell

Re: [PATCH v3] Weston: weston.ini man page

2013-01-14 Thread Pekka Paalanen
On Sat, 12 Jan 2013 04:58:40 -0700 Scott Moreau ore...@gmail.com wrote: Hi Martin, Thanks for working on this. A few comments below. On Fri, Jan 11, 2013 at 9:40 PM, Martin Minarik minari...@student.fiit.stuba.sk wrote: Track changes in weston.ini format: core, input-method sections.

Re: Pending patch queue

2013-01-16 Thread Pekka Paalanen
On Tue, 15 Jan 2013 15:13:04 -0500 Kristian Høgsberg hoegsb...@gmail.com wrote: So without further ado, here's the list I have now: * Subsurface (Pekka Paalanen) - Still work-in-progress. There are a few corner cases around commit behavior and clipping that we need to get consensus

Re: [PATCH] fbdev: Add an fbdev compositor backend using pixman and evdev

2013-01-16 Thread Pekka Paalanen
On Tue, 15 Jan 2013 14:08:10 + Philip Withnall phi...@tecnocode.co.uk wrote: This is an initial version of an fbdev backend for Weston. I don't consider it polished; I'm just looking for rough feedback at the moment. The work is also available as a gitorious branch if anyone prefers that:

[PATCH weston v2 1/4] compositor: update weston_surface:transform.matrix always

2013-01-16 Thread Pekka Paalanen
Update the matrix always, regardless of transform.enabled. Will make it easier to inherit a surface transform. Signed-off-by: Pekka Paalanen ppaala...@gmail.com --- src/compositor.c |5 + src/compositor.h |6 -- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src

[PATCH weston v2 2/4] compositor: introduce weston_surface_geometry_dirty()

2013-01-16 Thread Pekka Paalanen
Instead of directly setting the dirty flag on weston_surface geometry, use a function for that. This allows us to hook into geometry dirtying in following patches. Also add comments to weston_surface fields, whose modification causes transform state to become outdated. Signed-off-by: Pekka

[PATCH weston v2 4/4] compositor: popup inherits surface transformation

2013-01-16 Thread Pekka Paalanen
geometry dirty: only the immediate children will need to be signalled. Implement the popup surface transformation by inheritance instead of copy. Now, if we moved the popup's parent surface while the popup is open, the popup surface will stick to the parent properly. Signed-off-by: Pekka Paalanen ppaala

Re: [PATCH weston v2 1/4] compositor: update weston_surface:transform.matrix always

2013-01-16 Thread Pekka Paalanen
On Wed, 16 Jan 2013 12:40:15 +0200 Pekka Paalanen ppaala...@gmail.com wrote: Update the matrix always, regardless of transform.enabled. Will make it easier to inherit a surface transform. Signed-off-by: Pekka Paalanen ppaala...@gmail.com --- src/compositor.c |5 + src

[PATCH weston 1/2] compositor: remove android backend

2013-01-18 Thread Pekka Paalanen
and maintain it. Signed-off-by: Pekka Paalanen ppaala...@gmail.com --- configure.ac| 11 -- src/Makefile.am | 22 +--- src/android-framebuffer.cpp | 93 --- src/android-framebuffer.h | 54 -- src/compositor-android.c| 376

[PATCH weston 2/2] configure: remove C++ support

2013-01-18 Thread Pekka Paalanen
With the Android backend gone, there is no C++ code anymore. Remove support for C++ in the build. Signed-off-by: Pekka Paalanen ppaala...@gmail.com --- configure.ac |8 ++-- 1 files changed, 2 insertions(+), 6 deletions(-) diff --git a/configure.ac b/configure.ac index a2e8e27..f9075ae

Re: [PATCH] fbdev: Add an fbdev compositor backend using pixman and evdev

2013-01-18 Thread Pekka Paalanen
On Fri, 18 Jan 2013 10:45:27 + Philip Withnall phi...@tecnocode.co.uk wrote: Hi David, Thanks for the review. Replies inline, and a new patch coming up soon. On Wed, 2013-01-16 at 21:22 +0100, David Herrmann wrote: Hi Philip I like the simple design of this. I don't think we

Re: [PATCH v2] Weston: weston.ini.man page

2013-01-18 Thread Pekka Paalanen
On Thu, 17 Jan 2013 17:22:08 +0100 Martin Minarik minari...@student.fiit.stuba.sk wrote: - Update to latest automake - Spaces in INI are significant - elaborate on data types, by pq - mention type of value for each key - automake weston modules dir path - remove [shell] type= -

Re: Error: building xwayland

2013-01-21 Thread Pekka Paalanen
On Mon, 21 Jan 2013 12:59:55 +0530 ashjas ash...@gmail.com wrote: Hello, I have already built wayland and weston, and they are running fine,but when i try to build xwayland i am getting some configure errors: ./configure: line 24556: syntax error near unexpected token

[PATCH weston] clients: add global_remove handler stubs

2013-01-22 Thread Pekka Paalanen
on such events. Toytoolkit and all applications would need a lot more code to properly handle the global object removal. Signed-off-by: Pekka Paalanen ppaala...@gmail.com --- It is supposed to go like this: 1. server decides to remove a global object 2. server broadcasts

Re: [PATCH weston] clients: add global_remove handler stubs

2013-01-22 Thread Pekka Paalanen
On Tue, 22 Jan 2013 14:53:55 +0200 Pekka Paalanen ppaala...@gmail.com wrote: All the clients here were missing the global_remove handler. Because window.c did not have it, weston-desktop-shell and weston-keyboard segfaulted on compositor exit, as they received some wl_registry.global_remove

<    2   3   4   5   6   7   8   9   10   11   >