Do not call damage or commit before calling attach

We need to check that a buffer has been attached first before calling
damage and commit on the wayland client side.  So now we do in
QWaylandWindow.

Change-Id: I902dc5b479a2af10009de6acb42d6b455a6e4cb5
Reviewed-by: Jørgen Lind <jorgen.lind@digia.com>
Remove unused variable warning

Change-Id: I44aa007126b5da933e6306b82269698cb9bd1b99
Reviewed-by: Andy Nichols <andy.nichols@digia.com>
Deactivate window on keyboard leave

Change-Id: I39ead19962c69c2c4943437ca3e21315e7779385
Reviewed-by: Jørgen Lind <jorgen.lind@digia.com>
Make plugin pick up Qt wayland extensions

I forgot to change the strings when I renamed them

Change-Id: I76f52c12b5724c4ad4513723fd443f71ff745484
Reviewed-by: Andy Nichols <andy.nichols@digia.com>
Remove dead functions

Change-Id: I99b1ea870729760976e3b930eec4ac8a96517efa
Reviewed-by: Andy Nichols <andy.nichols@digia.com>
Make it possible to hide windows

Change-Id: Iad80149278edd670fd55a3a6c1b4975ac81d7f59
Reviewed-by: Andy Nichols <andy.nichols@digia.com>
Make the Compositor side of extended surface use the QtWaylandScanner

Change-Id: I9b71f78c1db4aa4044dde25881d74a7c519046a8
Reviewed-by: Andy Nichols <andy.nichols@digia.com>
Add close event to the surface extension

Change-Id: Iacbd83d5551b3a5c2152ff80bb0085ce3f853306
Reviewed-by: Andy Nichols <andy.nichols@digia.com>
Use QWindowSystemInterface since the api has been added

Change-Id: I864cf72ff5b30f835167871526680f72552c20f5
Reviewed-by: Andy Nichols <andy.nichols@digia.com>
Wait until all screens have geometry at startup

Change-Id: Ifcbc00d7118a39595fa98724bf60e0c6dae29180
Reviewed-by: Jørgen Lind <jorgen.lind@digia.com>
Use window's cursor when pointer enters instead of overriding it

Otherwise, it will override cursors for whole window with default
cursor. Also don't care about pointer_leave. Compositor or other
surface which pointer will enter in will handle the cursor when
pointer leaves.

Change-Id: I05e84d427d46d71d5ee38ebbd0647c40a99ef351
Reviewed-by: Andy Nichols <andy.nichols@digia.com>
wayland_common : Support to hide cursor

Regard Qt::BlankCursor as hiding cursor. set_cusor(null surface)
means to hide cursor.

Change-Id: I868129472ab46651d1bb346928f6e3c337c12a32
Reviewed-by: Jørgen Lind <jorgen.lind@digia.com>
QtCompositor : Support to hide cursor

According to current spec of wayland protocol, set_cursor request with
null surface means to hide cursor.

Change-Id: I6f4d83d135fc55272468c475e31a28fb6c661fda
Reviewed-by: Jørgen Lind <jorgen.lind@digia.com>
Compilefix for d8e110002d8cab2c1be3d8f930b67f3e158c3fb4

it didn't use the new interfaces exposed by Qt Wayland Scanner

Change-Id: If7056933f6d9560220619de5ab82f3ae751e6baa
Reviewed-by: Andrew Knight <andrew.knight@digia.com>
Reviewed-by: Andy Nichols <andy.nichols@digia.com>
Remove the wl_surface functions from QWaylandWindow

Change-Id: Ie2b79e713364b2b76f772d18910742188f9ac70e
Reviewed-by: Andy Nichols <andy.nichols@digia.com>
Remove unneeded functions

The QtWayland scanner makes these functions just relay functions, and
we'r converting the attributes when we don't need to, so lets just use
the inherited functions directly

Change-Id: Icae2270c59cc80088e5a452bda88b552b6396634
Reviewed-by: Andy Nichols <andy.nichols@digia.com>
Move the commit out of damage

Its wrong to have it in damage, as the backingstore will call damage
multiple times in a flush

Change-Id: Ic6832394a2e78c7390d40e19b125964e31d43a8d
Reviewed-by: Andy Nichols <andy.nichols@digia.com>
Update wayland config test to look for at least 1.1

Change-Id: I1bfdb3f2ade0f1a640bd0e876130b844e2797137
Reviewed-by: Andy Nichols <andy.nichols@digia.com>
Fixup the windowmanager extension code

ie. don't have it in its own dir

+ fixup some errors in the string matching from when extensions where
renamed from a wl_ prefix to a qt_ prefix

Change-Id: I5707c24fa727b9e49bd267eeb23fc8e43c40354f
Reviewed-by: Paul Olav Tvete <paul.tvete@digia.com>
Make surfaces visible by default

Also be explicit about the visibility, always send the notification
when a surface is set to QWaylandSurfaceItem

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