autotools: Add configure summary
keyboard: Don't use next_utf8_char() to go back where we came from

We go one utf8 char back and then one forward.  Just remember the original
position instead, which also avoids a warning about potentially
dereferencing a NULL return value from next_utf8_char().
simple-shm: Handle OOM when allocating struct display
simple-touch: Handle OOM when allocating struct touch
window: Add API to check for subcompositor, use in subsurface example

This way we can fail with a nice error message.
window: Don't check for subcompositor in window_add_subsurface()

Client should check for subcompositor support up front.  Now
window_add_surface() can never return NULL.
compositor: Handle OOM in weston_buffer_from_resource()

Handle NULL-return in call-sites as well.
window: Fix logic for looking up widget default cursor

We may deref a NULL pointer if there is no grab and no focus widget.
window: Use xzalloc() instead of failing to add input device
weston-info: Use xmalloc() in weston-info
add [xwayland] path weston.ini option

It sets the path to the xserver to run.

Signed-off-by: Maksim Melnikau <maxposedon@gmail.com>
window: Use xzalloc() instead of silently failing to add output
Add more missing config.h includes

config.h includes were missing in a few files, including input.c, the
lack of which caused the X11 backend to segfault instantly due to not
having an xkbcommon context.

Signed-off-by: Daniel Stone <daniel@fooishbar.org>
nested: The wl_resouce is the buffer, not the wl_resource user data
nested: Fix skipping frames due to texture update without a context

Calls into cairo-gles may change the current context, so it was only by
chance that sometimes we had the proper one as current and updated the
correct texture in surface_attach().

In order to fix this, calling display_acquire_window_surface() before
binding the texture for setup is necessary. However this call has the
side effect of allocating a cairo surface for the window. At flush time,
the existence of this surface will cause an eglSwapBuffers(), even
if no rendering was done to it, leading to undefined contents on the
screen. This happens when the idle redraw task runs while there is a
pending frame callback.

Workaround this by moving the texture setup from surface_attach() to the
redraw handler, so that the cairo surface is only allocated when
redering is done.
Add touch support for wl_shell_surface_move
Fixes CJK wide character display

By jumping two columns when wide character prints,
and draw wide background under wide character.
set RDP output enabled by default (stable 1.2)

This patch fixes a bug found by Marek Romanowic: the RDP peer output must
be enabled by default, or we have to unfocus/focus the RDP client window to
have disable/enable output messages sent (and finally receive updates).
autotools: Don't use wayland-scanner.m4
compositor: Only check buffer for NULL tried to allocate something

In particular, if we get a NULL buffer attach, it's ok for buffer to be NULL.