[PATCH weston 11/11] XWayland: Move surfaces through X when we reconfigure

2012-11-06 Thread Daniel Stone
When we're resizing from the top or left, send the new window size through the X server as well, so it can handle the move and resize with one atomic attach. Signed-off-by: Daniel Stone --- src/xwayland/window-manager.c | 39 --- 1 file changed, 24 insertion

[PATCH weston 10/11] Reset pending surface delta x and y on commit

2012-11-06 Thread Daniel Stone
The following sequence: wl_surface::attach(s, b, 1, 2) wl_surface::commit(s) wl_surface::commit(s) would actually result in the surface getting moved by (2,4) as the pending attach delta wasn't reset on commit, only by another attach. This only shows up on single-buffered s

[PATCH weston 07/11] XWayland: Draw decorations on Expose

2012-11-06 Thread Daniel Stone
Instead of issuing draw commands immediately after we map or reconfigure, wait for the server to send us an Expose event, thus making sure our drawing doesn't get lost. Signed-off-by: Daniel Stone --- src/xwayland/window-manager.c | 218 + 1 file changed,

[PATCH weston 09/11] Clip surface damage to the surface area

2012-11-06 Thread Daniel Stone
Otherwise glTexSubImage2D will reject our co-ordinates as being out of bounds. Signed-off-by: Daniel Stone --- src/compositor.c |5 + 1 file changed, 5 insertions(+) diff --git a/src/compositor.c b/src/compositor.c index 6b0c004..d5b13c8 100644 --- a/src/compositor.c +++ b/src/composito

[PATCH weston 08/11] SHM: Don't flush damage when there is none

2012-11-06 Thread Daniel Stone
Every single frame, we were calling the flush_damage handler in the renderer. For GLES2 with subimage, this wasn't too bad as we'd never call glTexSubImage2D, but without it, we'd upload the entire frame through glTexImage2D every time. Signed-off-by: Daniel Stone --- src/compositor.c |3 ++

[PATCH weston 06/11] XWayland: Only initialise WM on signal from the server

2012-11-06 Thread Daniel Stone
To avoid deadlocks where the X server is blocked on a roundtrip for information from the compositor, and the compositor is blocked waiting for connection information from the X server in window manager init, wait for a signal from the X server saying that it's now waiting for clients to connect. R

[PATCH weston 05/11] Clients: Don't set the cursor when we have no pointer

2012-11-06 Thread Daniel Stone
Avoids a segfault whenever we get a key event, and try to set the cursor, dereferencing a NULL input->pointer. Signed-off-by: Daniel Stone --- clients/window.c |6 ++ 1 file changed, 6 insertions(+) diff --git a/clients/window.c b/clients/window.c index ddd8bca..288a526 100644 --- a/cli

[PATCH weston 00/11] XWayland update for 1.0

2012-11-06 Thread Daniel Stone
Hi all, Here's the somewhat-delayed XWayland update for 1.0. With this and my updated X server, I've been able to run XWayland just fine under Weston from current git master. The X server tree is at: git://git.collabora.com/git/user/daniels/xserver xwayland-1.12 is an extension of the bra

[PATCH weston 03/11] Prepare smoke for multitouch support

2012-11-06 Thread Daniel Stone
Split motion tracking out into separate handlers so we can have one per touch. Signed-off-by: Daniel Stone --- clients/smoke.c | 155 +++ 1 file changed, 110 insertions(+), 45 deletions(-) diff --git a/clients/smoke.c b/clients/smoke.c index

[PATCH weston 02/11] smoke: Remove unused offset member

2012-11-06 Thread Daniel Stone
Signed-off-by: Daniel Stone --- clients/smoke.c |3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/clients/smoke.c b/clients/smoke.c index 905e53f..80b8c58 100644 --- a/clients/smoke.c +++ b/clients/smoke.c @@ -37,7 +37,7 @@ struct smoke { struct window *window;

[PATCH weston 01/11] Terminal: Handle keypad symbols

2012-11-06 Thread Daniel Stone
XKB provides keypad symbols in a separate namespace. We don't care about the distinction, so map them to normal symbols before starting processing. Signed-off-by: Daniel Stone --- clients/terminal.c | 63 1 file changed, 63 insertions(+) d

[PATCH weston 04/11] smoke: Ramp down a little more aggressively

2012-11-06 Thread Daniel Stone
If our colour components are all less than (20 / 255), call it 0 and move on. Signed-off-by: Daniel Stone --- clients/smoke.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/clients/smoke.c b/clients/smoke.c index 42540d0..f25a657 100644 --- a/clients/smoke.c +++ b/clients/smoke.c @@ -1

[PATCH] Add version info to the shared libs

2012-11-06 Thread Mikko Levonmaa
Adds the wayland version information to the shared libraries. libwayland-server.so.0.0.0 -> libwayland-server.so.1.0.0 Signed-off-by: Mikko Levonmaa --- src/Makefile.am |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/src/Makefile.am b/src/Makefile.am index f93954e..0a79