Fix uninitialized value in surface item

Change-Id: I3a369d9d46dd95a361f3c3b1ee838237bf5141a5
Reviewed-by: Andrew Knight <andrew.knight@digia.com>
Reviewed-by: Andy Nichols <andy.nichols@digia.com>
Fix uninitialized value in generated code

Change-Id: Ied932604de63072cc3b5614c84c8ec34fd94c891
Reviewed-by: Andy Nichols <andy.nichols@digia.com>
Adapt WM integration to use qtwaylandscanner

Fixes also double free of resource in Wayland 1.2.

Change-Id: Ic441c0f21da7a031502cb2ac97c191645a6727ba
Reviewed-by: Andy Nichols <andy.nichols@digia.com>
Adapt TouchExtension to use qtwaylandscanner

Also fixes double free of resource in Wayland 1.2.

Change-Id: Id2c94a80b728ef9a27004bd169754bd2c27ab261
Reviewed-by: Andy Nichols <andy.nichols@digia.com>
Do not rely on deprecated wl_buffer struct

wl_buffer objects are not necessary deprecated wl_buffer structs
anymore. See for example the mesa commit:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=8d29b5271a2e66fc78436be31ed6748ff006f0cb

Add a bufferSize() method to QWaylandGraphicsHardwareIntegration to
query the size of the buffer (instead of using width and height from the
wl_buffer struct).

Use wl_resource instead of wl_buffer as argument type in the
QWaylandGraphicsHardwareIntegration methods.

Change-Id: Id7ca7e84c2abe31f7448fe59c2d0005edcb4ec25
Reviewed-by: Andy Nichols <andy.nichols@digia.com>
Fix brcm-egl plugin to compile

wl_brcm was renamed to qt_brcm. Also adapt the brcm-egl
waylandcompositor plugin to use qtwaylandscanner.

Change-Id: Id8539389b7f22b107ba7349f7ba1e7ffa4a59eb1
Reviewed-by: Andy Nichols <andy.nichols@digia.com>
Adapt XCompositeBuffer to qtwaylandscanner

Change-Id: I108e6a2a01c9ae972e9a7f47f5b289132d862f69
Reviewed-by: Andy Nichols <andy.nichols@digia.com>
Integrate QWindow::Visibility into Compositor API

This enhances the onscreen_visibility extension to use QWindow's
visibility API. This way, the compositor can set the QWindow::visibility
on a Qt client. Any client that updates its window type through wl_shell
will also have its QWaylandSurface::visibility property updated, and the
compositor can choose to composite the surface accordingly. This also
simplifies exposure handling in QWaylandWindow so that it can use the
base implementation.

The existing use of this extension, setClientRenderingEnabled, is kept for
compatibility, and maps to QWindow::Hidden (false) and
QWindow::AutomaticVisibility (true).

Change-Id: If009649b98c792ca79585fbb09ea7912efeef7da
Reviewed-by: Andy Nichols <andy.nichols@digia.com>
Handle close of transient children upon window destruction

Transient window behavior is delegated to the platform, as it is intended
as a hint to the window manager. This makes clients close transient child
windows when the transient parent is closed, defining the "expected"
platform behavior.

Change-Id: I1c75489a6419cc83712fcbb64a9a9e2073552272
Reviewed-by: Andy Nichols <andy.nichols@digia.com>
Destroy surface by force when not destroying an extended surface

As QWaylandSurface doesn't offer a public property stating if the surface
is extendeded (yet), let destroySurface() act like destroySurfaceByForce()
for non-extended (non-Qt) surfaces.

Change-Id: Ib8cb372b446404f744ebc07d1e2d8c68a39d97a7
Reviewed-by: Jan Arne Petersen <jan.petersen@kdab.com>
Reviewed-by: Andy Nichols <andy.nichols@digia.com>