diff options
author | Jørgen Lind <jorgen.lind@theqtcompany.com> | 2015-09-18 12:44:21 +0200 |
---|---|---|
committer | Paul Olav Tvete <paul.tvete@theqtcompany.com> | 2015-09-18 14:57:31 +0000 |
commit | 8c69282412c15300676a8c7f44b8eee4b6db6bfa (patch) | |
tree | 6c361879a9ea223d726c48e6d3f3aba109eae3cd /src/compositor/compositor_api/qwaylandsurface.cpp | |
parent | b2a27f4beb417ca884612f6af520f81c1a745143 (diff) |
Make sure QWaylandQuickItem paints the first frame
when a Surface containing a frame is being set on it
Change-Id: Ie19f017f0f28e225ffc29edf9a88fa21e6988d02
Reviewed-by: Paul Olav Tvete <paul.tvete@theqtcompany.com>
Diffstat (limited to 'src/compositor/compositor_api/qwaylandsurface.cpp')
-rw-r--r-- | src/compositor/compositor_api/qwaylandsurface.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/compositor/compositor_api/qwaylandsurface.cpp b/src/compositor/compositor_api/qwaylandsurface.cpp index 72575b9d9..da6a120ae 100644 --- a/src/compositor/compositor_api/qwaylandsurface.cpp +++ b/src/compositor/compositor_api/qwaylandsurface.cpp @@ -573,6 +573,8 @@ void QWaylandSurfacePrivate::refView(QWaylandView *view) views.append(view); ref(); + QWaylandBufferRef ref(buffer); + view->attach(ref, QRect(QPoint(0,0), ref.size())); } void QWaylandSurfacePrivate::derefView(QWaylandView *view) |