[PATCH] Support on-the-fly transparency changes in pixman renderer

2014-04-04 Thread Manuel Bachmann
When the alpha channel of a surface is changed and the surface refreshed, pixman renderer will now apply a mask corresponding to the alpha channel value. This allows visual effects like shell fade in, shell fade out, window switching, to work when using pixman renderer. Signed-off-by: Manuel Bach

[PATCH] shell: Fix segfault from trying to access a destroyed popup shell surface

2014-04-04 Thread Bryan Cain
The shell_destroy_shell_surface function only set the backing resource to NULL, leaving an unusable surface in the popup_grab list until the surface's fading animation finished and it could be freed. This caused a segfault if the shell tried to forcibly break the grab during that time interval due

[PATCH] compositor-rdp: Remove unneeded client->Close call

2014-04-04 Thread Jason Ekstrand
The client->Close call is unneeded as that is already implied by returning FALSE. --- src/compositor-rdp.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/compositor-rdp.c b/src/compositor-rdp.c index fc7dfb2..aecc0a8 100644 --- a/src/compositor-rdp.c +++ b/src/compositor-rdp.c @@ -681,7 +

Re: [PATCH weston] Always use glTexImage2D instead of glTexSubImage2D for first upload

2014-04-04 Thread Jason Ekstrand
Neil, The patch doesn't look like it breaks anything, but I'm not convinced it's 100% correct. We may still have a problem if the client changes buffer formats mid-stream. Say it starts out with RGB565 to save memory but latter decides it wants alpha so it switches to ARGB. We should probabl

(RFC) weston-keyboard: enhancement proposal

2014-04-04 Thread Manuel Bachmann
Hi folks, I recently played with weston's virtual keyboard which has the following shortcomings : - pressing "123?" (symbols keys) doesn't work ; thus you cannot send digits nor special characters with it ; - arabic layout is incomplete, and thus apparently deactivated ; I worked a bit and came

[PATCH weston] Always use glTexImage2D instead of glTexSubImage2D for first upload

2014-04-04 Thread Neil Roberts
Previously when uploading SHM data we would initialise the texture with glTexImage2D and NULL data when the buffer is attached. Then if the GL_EXT_unpack_subimage extension is available we would always use glTexSubImage2D to upload the data. The problem with that is that the first glTexImage2D was

[PATCH weston 2/2] compositor: wl_viewport destination 1x1 min

2014-04-04 Thread Pekka Paalanen
From: Pekka Paalanen Ensure, that the resulting surface size is at least 1x1, even when destination size is not set and source size is zero. Previously this lead to zero surface size. This can still happen due to wl_viewport.set(#, #, 0, 0, #, #) followed by wl_viewport.set_destination(-1, -1).

[PATCH weston 1/2] protocol: unify wl_viewport src and dst size rules

2014-04-04 Thread Pekka Paalanen
From: Pekka Paalanen Let's make the source and destination size rules consistent: neither can have zero, {-1, -1} disables it, and other negatives are not allowed. The sanity of allowing zero sized source rectangle as debatable. Now the minimum becomes 1/256x1/256, and with output_scale the actu

Re: [PATCH weston] protocol,compositor: wl_viewport destination 1x1 min

2014-04-04 Thread Pekka Paalanen
On Wed, 2 Apr 2014 10:18:29 +0300 Pekka Paalanen wrote: > From: Pekka Paalanen > > Ensure, that the resulting surface size is at least 1x1, even when > destination size is not set and source size is zero. Previously this > lead to zero surface size. > > Tested by hacking clients/scaler.c to s

Re: [PATCH libinput] test: Use generic test device API in touch_abs_transform test

2014-04-04 Thread Peter Hutterer
On Thu, Apr 03, 2014 at 10:46:56PM +0200, Jonas Ã…dahl wrote: > Instead of having a test device which only purpose is to test absolute > coordinate transformation, use the litest_create_device_with_overrides() > API to create a specially crafted wacom touch device with high > resolution. > > Signed

[PATCH] toytoolkit: match parent surface type when adding a subsurface

2014-04-04 Thread Manuel Bachmann
When adding a subsurface (to display a tooltip) in toytoolkit, we now get the parent window surface type (SHM or EGL) and define the new surface type as the same. This fixes crashes with tooltips in cases like having Cairo-EGL available but running the X11 compositor. Signed-off-by: Manuel Bachma