Remove scheduleRedraw() method leftover

The scheduleRedraw() method was removed by the commit
076673dfe3d967e42c8d92b08165e2ac0e166b9b but it was left in
the header.

Change-Id: Ia7bc8aa4c749c1542174132d39c381d38105791e
Reviewed-by: Jørgen Lind <jorgen.lind@digia.com>
Use requested window format

Otherwise we end up with errors like this:

  QEGLPlatformContext::makeCurrent: eglError: 3009, this: 0x4b5c58

Change-Id: I6c44ee67c9049469088c5848df463a21e2bd2c66
Reviewed-by: Jørgen Lind <jorgen.lind@digia.com>
Install qwayland-server-wayland.h

It's required by the private QtCompositor API.

Change-Id: I2f00fb5f60e5b849bb9656deef998ef3a1fb26e4
Reviewed-by: Jørgen Lind <jorgen.lind@digia.com>
Attach always the front buffer before committing it.

The attach semantics changed in Wayland master.

Change-Id: I79efa5e3b2d048604cadb18543101a869ccb6835
Reviewed-by: Jørgen Lind <jorgen.lind@digia.com>
Make SurfaceBuffer::destroyTexture be reenterable

When QOpenGLSharedResourceGuard is freed, destroyTexture
might be reentered to cause double free. If a texture has
reference to wl_buffer which is already destroyed, freeing
the texture with decreasing reference counter will call
wl_resource_destroy for wl_buffer. Then destroyTexture will
be reentered through destroy_listener_callback.

Change-Id: I156f410ce1a05b3041b05a310b5d3d79d38e0a8c
Reviewed-by: Jørgen Lind <jorgen.lind@digia.com>
Cursor theme configuration from environment variables

Cursor theme name and size can be configured with environment variables
just like with X11 applications.

Change-Id: Ibad00f1d536424925b16c8f20b6a22751abd1566
Reviewed-by: Jørgen Lind <jorgen.lind@digia.com>