Integrate QWindow::Visibility into Compositor API

This enhances the onscreen_visibility extension to use QWindow's
visibility API. This way, the server 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).
Merge pull request #9 from rburchell/master

[packaging] Properly enable multicore builds
[packaging] Stop using wayland_variant

Signed-off-by: Carsten Munk <carsten.munk@jollamobile.com>
Merge branch 'master' of github.com:mer-packages/qtwayland
[packaging] remember that precheckin.sh is a source too

Signed-off-by: Carsten Munk <carsten.munk@jollamobile.com>
Change setDirectRenderSurface to return the result

No need to hide the bool.
Merge pull request #10 from mikkoharju/master

Change setDirectRenderSurface to return the result
Merge pull request #8 from xknight/master

Integrate QWindow::Visibility into Compositor API
Add QT_WAYLAND_COMPOSITOR_NO_THROTTLE

For debugging purposes, make it possible to set
environment variable QT_WAYLAND_COMPOSITOR_NO_THROTTLE that
causes the compositor to send frame events for all
client surfaces that have pending frame callbacks.
Merge pull request #11 from mikkoharju/master

Add QT_WAYLAND_COMPOSITOR_NO_THROTTLE
[update] to upstream e48ea148
Squashed 'qtwayland/' changes from ede872d..e48ea14

e48ea14 Destroy surface by force when not destroying an extended surface
3a33492 Handle close of transient children upon window destruction
1553635 Integrate QWindow::Visibility into Compositor API
434700e Adapt XCompositeBuffer to qtwaylandscanner
7f4be80 Fix brcm-egl plugin to compile
68d3df7 Do not rely on deprecated wl_buffer struct
8db53e4 Adapt TouchExtension to use qtwaylandscanner
ad98fa5 Adapt WM integration to use qtwaylandscanner
28ff087 Fix uninitialized value in generated code
a8a388f Fix uninitialized value in surface item
d51bb8c Remove deadlock in resize
a57005f Fix double frees in Wayland 1.2
3650477 Implement QPlatformWindow::raise() in QWaylandWindow and relay it to the compositor
b704431 Show screen name based on output model
752b0b8 Fix SurfaceBuffer to support Wayland 1.2
3c815dc No need for Surface to be a ::wl_surface anymore
dc8c23b Add an own input and focus implementation
7f1bf1c Send touch events to the focused window
ae16f49 Make sure to set the right cursor for the surface on mouse enter
5082ea7 Fixed compilation error caused by wl_xcomposite
12bcf82 Remove reference to v8 module in qml-compositor
a6f2b24 Update tests so that it does not deadlock
47ca3fd Remove conversion warning in examples
533da94 Remove unwanted api
e89db62 QtComp: Implement set_maximized and set_fullscreen to have something
52c0874 Update error text to match required Wayland version
ca5c449 Fix warning unused
a524319 Fix switching of active window.
fa9c133 fix namespaced build

git-subtree-dir: qtwayland
git-subtree-split: e48ea148aa285e81ab78c23ded3a5f6224883a05
Merge commit 'be0c054f7a06546b5753ea12b4c58b0c08bfacd3' into upstream

Conflicts:
	qtwayland/src/compositor/wayland_wrapper/qwlextendedsurface.cpp
	qtwayland/src/compositor/wayland_wrapper/qwlshellsurface.cpp
	qtwayland/src/plugins/platforms/wayland_common/qwaylandintegration.cpp
	qtwayland/src/plugins/platforms/wayland_common/qwaylandwindow.h
Merge pull request #14 from xknight/master

[update] Merge from upstream qtwayland e48ea148
Destroy extended surface object

QWaylandExtendedSurface did not destroy for the corresponding wayland
object when deleted.
Correct placement of window event flush for window state

A bad cherry-pick meant that 155363 put some code window flushing code
inside the wrong function. This fixes where the flush should occur.

Change-Id: I468d9881d08c358cf559a12d52b18702db3cb1e0
Merge pull request #15 from mikkoharju/master

Destroy extended surface object
Make frame callbacks part of the pending commit state

Commit to frame callbacks only on commit.
Check for null surfaceBuffer

If client detaches the buffer and commits, check for
null surfaceBuffers.
Fix qt key extension interface name