Fix the popups handling.

Use wl_shell_surface_set_popup() instead of wl_shell_surface_set_transient(),
since the latter is not supposed to make the surface follow the transient
parent movements.

Needs Weston master or 1.0.6, otherwise freezes will happen.
To have the best experience you should however use recent weston master.
The popups in QtCompositor are badly placed.

Change-Id: I3c86e5d74503514749840681b4e81c58cd73ca70
Reviewed-by: Andy Nichols <andy.nichols@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>
Reviewed-by: Pier Luigi Fiorini <pierluigi.fiorini@gmail.com>
Reviewed-by: Andy Nichols <andy.nichols@digia.com>
make failure to configure wayland non-fatal for a top-level build of qt

Change-Id: Ibd0557158ffa00cbacd64b4780961a684ab40afb
Reviewed-by: Jørgen Lind <jorgen.lind@digia.com>
Merge remote-tracking branch 'origin/stable' into dev

Conflicts:
	qtwayland.pro
	src/plugins/platforms/wayland_common/qwaylandshellsurface.cpp
	src/plugins/platforms/wayland_common/qwaylandwindow.cpp
	src/plugins/platforms/wayland_common/qwaylandwindow.h

Change-Id: I6f9e8fb0536212b7b072aec3c8152390fb9f2922
Require wayland-cursor to build

Change-Id: Ib09b2cff3f7f57efd25cbd9b085542eab2ac2853
Reviewed-by: Jørgen Lind <jorgen.lind@digia.com>
Ignore files generated by qtwaylandscanner

Change-Id: I760adafd10a37409958da9601fee3412dc649aa4
Reviewed-by: Jørgen Lind <jorgen.lind@digia.com>
Call eglCreateImageKHR with no EGL context

For a EGL_WAYLAND_BUFFER_WL target eglCreateImageKHR should be called
with EGL_NO_CONTEXT because no client API context is required and
providing an EGL context results in a EGL_BAD_CONTEXT for some EGL
implementations (i.e. Vivante on Freescale i.MX6).

Change-Id: Ie84c88fd20a470c0c052222ac9365625020f5bb9
Reviewed-by: Jørgen Lind <jorgen.lind@digia.com>
fix namespaced build

rule 1: QT_USE_NAMESPACE in qt code itself is a bad idea
rule 2: don't forget to forward-declare your non-qt types

Change-Id: Ifba69328f3451e708c26624f349485e7c61d31f5
Reviewed-by: Jan Arne Petersen <jan.petersen@kdab.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
Fix switching of active window.

When getting a surface leave/surface enter pair, the enter event was lost.
It could be seen when opening a popup menu. This patch uses a wl_callback
to activate the right window.

Change-Id: Ibd35fcaa0d43f4723dd7aeff71264d6145411a08
Reviewed-by: Andy Nichols <andy.nichols@digia.com>
Fix warning unused

Change-Id: Iaab48cb9a9b6675579f00dd2a5eb038c5e94904a
Reviewed-by: Jan Arne Petersen <jan.petersen@kdab.com>
Reviewed-by: Paul Olav Tvete <paul.tvete@digia.com>
Update error text to match required Wayland version

The required Wayland version was updated to 1.1, but the top-level error
message was not updated to reflect this.

Change-Id: Ifc1c7552a4a38986685c214e24241704fd774e11
Reviewed-by: Jan Arne Petersen <jan.petersen@kdab.com>
Reviewed-by: Paul Olav Tvete <paul.tvete@digia.com>
QtComp: Implement set_maximized and set_fullscreen to have something

We only support single screen for now in the api, so pretty basic still

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

Change-Id: I2e2d57df508b08594ec937e19259d156e5b3b547
Reviewed-by: Jan Arne Petersen <jan.petersen@kdab.com>
Reviewed-by: Andy Nichols <andy.nichols@digia.com>
Remove conversion warning in examples

Change-Id: I69944a417d40ad39d261b58a35eee4f84156995f
Reviewed-by: Paul Olav Tvete <paul.tvete@digia.com>
Reviewed-by: Laszlo Papp <lpapp@kde.org>
Reviewed-by: Andy Nichols <andy.nichols@digia.com>
Update tests so that it does not deadlock

still failes though

Change-Id: I7978c752b02f32a2e2c587c0ad674c51c5e0ad22
Reviewed-by: Andy Nichols <andy.nichols@digia.com>
Remove reference to v8 module in qml-compositor

Explicitly adding the QT += v8 in .pro files is
now an error, so it has been removed.

Change-Id: Ib8f6fc497790f90da5c36e18337a8aa74be3b06b
Reviewed-by: Paul Olav Tvete <paul.tvete@digia.com>
Fixed compilation error caused by wl_xcomposite

It seems like wl_xcomposite was renamed to qt_xcomposite, but not in all places, what cased compilation error, so all remaining appearences where renamed.

Change-Id: I2850dfb428ea39e9a30ec076500c1e26ce1fe5da
Reviewed-by: Jan Arne Petersen <jan.petersen@kdab.com>
Reviewed-by: Andrew Knight <andrew.knight@digia.com>
Reviewed-by: Andy Nichols <andy.nichols@digia.com>
Make sure to set the right cursor for the surface on mouse enter

Change-Id: I09527c8cfc0abfb7b1786a65b8c4d3e6d176978f
Reviewed-by: Andy Nichols <andy.nichols@digia.com>
Send touch events to the focused window

When we know the focused touch window just use it instead of relying on
QGuiApplication to find a toplevel window on the global touch position.

Change-Id: Iefa38685a20cc82e212fa413380b02780bb59982
Reviewed-by: Andy Nichols <andy.nichols@digia.com>
Add an own input and focus implementation

Do not use the shared wayland-server input and focus implementation any
longer. It just makes the code complicate and ugly using C-style APIs
without much benefit and it is much nicer to implement them ourselves
with a Qt API. The shared input and focus code got removed from Wayland
1.2 because of that.

Change-Id: Iab7181e743e7fa26004b0dd93a827dc8f86ca676
Reviewed-by: Andy Nichols <andy.nichols@digia.com>