Re: Payload size and text.xml in weston

2013-12-12 Thread Jason Ekstrand
Elvis, On Dec 12, 2013 2:08 AM, "Elvis Lee(KwangWoong Lee)" wrote: > > Hello. > > It seems that each message has a limitation of payload size, 1024 bytes. I thought it was 4096 bytes (1024 uchar32_t's), but yes, it is there. In particular, this is the maximum size of any particular protocol mes

[PATCH v3] Add support of dmabuf in wayland/weston

2013-12-12 Thread benjamin . gaignard
From: Benjamin Gaignard The goal of this serie of patches is to add a way to use dmabuf file descriptor inside wayland and weston. In a context where there is no Mesa EGL (and so no wl_drm protocol) wl_dmabuf could be used as an alternative to shm to share buffers between hardware devices. If yo

[PATCH v3] compositor-drm: allow to be a wl_dmabuf server

2013-12-12 Thread benjamin . gaignard
From: Benjamin Gaignard Make drm compositor aware of the wl_dmabuf protocol if pixman is used. Add functions to have a wl_dmabuf server inside drm compositor. Change pixman to let it know how use a wl_dmabuf buffer. Signed-off-by: Benjamin Gaignard --- src/compositor-drm.c | 168

[PATCH v3] Add wl_dmabuf protocol

2013-12-12 Thread benjamin . gaignard
From: Benjamin Gaignard It allow to use a dmabuf file descriptor in a wayland protocol. To make as generic as possible it is up to the server to call wl_dmabuf_send_format() and/or wl_dmabuf_send_device() to signal it capabilities. Signed-off-by: Benjamin Gaignard --- protocol/Makefile.am

[PATCH] compositor-drm: consider the best mode of the mode_list as an option

2013-12-12 Thread Fabien DESSENNE
This patch fixes an issue where Weston using the DRM backend, cannot start the display. This happens in the following context: - no video mode is set before weston starts (eg no "/dev/fb" set up) - weston is not configured with any default video mode (nothing from weston.ini nor command line) - t

[PATCH weston] compositor: export weston_buffer_from_resource()

2013-12-12 Thread Giulio Camuffo
This is needed to allow shell plugins to implement their own screenshooter. --- src/compositor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compositor.c b/src/compositor.c index 66ed7de..edc6df0 100644 --- a/src/compositor.c +++ b/src/compositor.c @@ -1354,7 +1354,7 @@

[PATCH weston v5] pixman: Destroy pixman images when underlying buffer is destroyed

2013-12-12 Thread Lubomir Rintel
While the pixman image might be attached, the underlying buffer might be already gone under certain circumstances. This is easily reproduced by attempting to resize gnome-terminal on a fbdev backend. $ WAYLAND_DEBUG=1 strace -emunmap weston --backend=fbdev-backend.so ... [1524826.942] wl_shm@7.cre

Re: [PATCH v4] pixman: Destroy pixman images when underlying buffer is destroyed

2013-12-12 Thread Lubomir Rintel
On Wed, 2013-12-04 at 11:54 -0800, Kristian Høgsberg wrote: > On Wed, Dec 04, 2013 at 08:31:37AM +0100, Lubomir Rintel wrote: > > While the pixman image might be attached, the underlying buffer might be > > already gone under certain circumstances. This is easily reproduced by > > attempting to res

Re: [Accessibility] Need to be able to sythesize mouse events

2013-12-12 Thread Giulio Camuffo
2013/12/12 Matthias Clasen : > > On Wed, Dec 11, 2013 at 2:15 PM, Piñeiro wrote: >> >> >> On 12/11/2013 07:09 PM, Giulio Camuffo wrote: >> > Wayland doesn't have a way to inject mouse events currently. Some >> > protocol must be written, which would be presumably implemented as a >> > private prot

Re: [PATCH weston 2/2 v3] compositor: add a masking mechanism to weston_layer

2013-12-12 Thread Pekka Paalanen
On Wed, 11 Dec 2013 18:55:08 +0100 Giulio Camuffo wrote: > this adds a mechanism to mask the views belonging to a layer > to an arbitrary rect, in the global space. The parts that don't fit > in that rect will be clipped away. > Implemented in the gl and pixman renderers, while it needs to be > i

Re: wl_display_connect() falling back to wayland-0

2013-12-12 Thread Pekka Paalanen
On Wed, 11 Dec 2013 11:16:22 -0800 Bill Spitzak wrote: > I certainly like that there is a fallback. The user should not have > to set environment variables to get something to work. Exactly. Users will not have to anyway. All the environment variables are already set by "the system", unless the

Payload size and text.xml in weston

2013-12-12 Thread Elvis Lee(KwangWoong Lee)
Hello. It seems that each message has a limitation of payload size, 1024 bytes. While using text protocol in Weston, we encountered some cases which exceeds the limitation. For example, "set_surrounding_text" carries a string which is longer than 1024 bytes. I guess and hope that you guys