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>
No need for Surface to be a ::wl_surface anymore

This struct was only required by the wayland-server input/focus code
which we do not use anymore.

Change-Id: I6a70511bc731ea43f7e92b0196f0e5938148a814
Reviewed-by: Andy Nichols <andy.nichols@digia.com>
Fix SurfaceBuffer to support Wayland 1.2

The new wl_shm_buffer in Wayland 1.2 is no wl_buffer anymore, so use
wl_resource instead of wl_buffer.

Change-Id: Ie208c6b78f88eb942d88a58c6fa8944fc2864fb7
Reviewed-by: Andy Nichols <andy.nichols@digia.com>
Show screen name based on output model

Platform screen now returns the screen name.

Change-Id: I190da6b4d89774dd25de8353615fe7dcaeb11cd4
Reviewed-by: Jan Arne Petersen <jan.petersen@kdab.com>
Reviewed-by: Andy Nichols <andy.nichols@digia.com>
Implement QPlatformWindow::raise() in QWaylandWindow and relay it to the compositor

Change-Id: I744f9799730810e4afc73f86487a34aa0fd8405b
Done-with: Vesa Halttunen <vesa.halttunen@jollamobile.com>
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>
Fix double frees in Wayland 1.2

Remove double frees in destroy_func generated by qwaylandscanner. The
wl_resource struct is already freed by wl_resource_destroy() in
wayland-server in Wayland 1.2.

Change-Id: Ibd42e42a23238ba9c665a7c918f9b547968f7146
Reviewed-by: Andy Nichols <andy.nichols@digia.com>
Merge branch 'stable' into hawaii-stable