Have the selection offer global handled always without delay.
authorLaszlo Agocs <laszlo.p.agocs@nokia.com>
Thu, 23 Jun 2011 16:07:20 +0000 (18:07 +0200)
committerQt by Nokia <qt-info@nokia.com>
Fri, 24 Jun 2011 10:09:44 +0000 (12:09 +0200)
commit73746a5a897297fe499e90e972bbbf736f0cfbba
tree924ac3fb5a0e3bb621b355b89806586f2d779081
parentea933359b738e1e8a4d16ebb14f11cda1ac23be7
Have the selection offer global handled always without delay.

In a previous attempt to solve the problem of selection offer
globals arriving too early, the handling was delayed. This
solved the issue of crashing but introduced a timing issue,
because the offers (the mime types) will arrive immediately
after the global and therefore will simply be ignored in
case the delayed processing of the selection offer had not
yet been done. The visibility of the problem depended on the
implementation of the compositor, with recent changes to
qt-compositor the issue is very visible.

The patch solves the issue properly: The wayland clipboard
instance is created right away, as early when needed, and the
integration will simply pick up the already created instance.

Change-Id: I75aaba4b0590c05cc0091bed7bb3593186c1188f
Reviewed-on: http://codereview.qt.nokia.com/687
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Paul Olav Tvete <paul.tvete@nokia.com>
src/plugins/platforms/wayland/qwaylandclipboard.cpp
src/plugins/platforms/wayland/qwaylandclipboard.h
src/plugins/platforms/wayland/qwaylanddisplay.cpp
src/plugins/platforms/wayland/qwaylanddisplay.h
src/plugins/platforms/wayland/qwaylandintegration.cpp
src/plugins/platforms/wayland/qwaylandintegration.h