[PATCH] weston: Clip window title text to the frame

2012-07-02 Thread Martin Minarik
Fixes an issue with text overflowing the available frame space. --- shared/cairo-util.c |4 1 file changed, 4 insertions(+) diff --git a/shared/cairo-util.c b/shared/cairo-util.c index 649ed98..6348ff7 100644 --- a/shared/cairo-util.c +++ b/shared/cairo-util.c @@ -401,6 +401,10 @@ theme_

Re: [PATCH] shell: Use desired output when sending configure events when maximised

2012-07-02 Thread Kristian Høgsberg
On Mon, Jul 02, 2012 at 07:00:19PM +0100, Rob Bradford wrote: > From: Rob Bradford > > With shell_surface.set_maximised the caller can provide an output to maximise > to or the default output will be used. With the corresponding configure we > should use the dimensions from the chosen output not

Re: [PATCH 1/2] protocol: Add explicit nullable types

2012-07-02 Thread Kristian Høgsberg
On Mon, Jul 02, 2012 at 08:03:30PM +1000, Christopher James Halse Rogers wrote: > Most of the time it does not make sense to pass a NULL object, string, or > array > to a protocol request. This commit adds an explicit “allow-null” attribute > to mark the request arguments where NULL makes sense. >

[PATCH] shell: Use desired output when sending configure events when maximised

2012-07-02 Thread Rob Bradford
From: Rob Bradford With shell_surface.set_maximised the caller can provide an output to maximise to or the default output will be used. With the corresponding configure we should use the dimensions from the chosen output not the output the surface was currently on. Similarly when calculating the

[PATCH] compositor: Correctly calculate changed sub image rectangle

2012-07-02 Thread Rob Bradford
From: Rob Bradford When calling glTexSubImage2D for sub image updates for SHM surfaces the changed rectangle was being wrongly calculated. This resulted in interesting redraw artefacts for clients using SHM. --- src/compositor.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --gi

[PATCH 2/2] protocol: Explicitly mark requests which allow null arguments

2012-07-02 Thread Christopher James Halse Rogers
Signed-off-by: Christopher James Halse Rogers --- protocol/wayland.xml | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/protocol/wayland.xml b/protocol/wayland.xml index 5260ecf..06b3d0f 100644 --- a/protocol/wayland.xml +++ b/protocol/wayland.xml @@ -250,

[PATCH 1/2] protocol: Add explicit nullable types

2012-07-02 Thread Christopher James Halse Rogers
Most of the time it does not make sense to pass a NULL object, string, or array to a protocol request. This commit adds an explicit “allow-null” attribute to mark the request arguments where NULL makes sense. Passing a NULL object, string, or array to a protocol request which is not marked as allo

Enforce non-null types in the protocol

2012-07-02 Thread Christopher James Halse Rogers
These commits add a new, optional attribute to string, array, and objects in the protocol: allow-null. If an argument is marked as allow-null=false or does not have an allow-null attribute then attempting to pass null is a protocol error, is picked up in libwayland, and the call is not made. This