summaryrefslogtreecommitdiffstats
path: root/src/compositor/compositor_api/qwaylandsurface.cpp
diff options
context:
space:
mode:
authorPaul Olav Tvete <paul.tvete@gmail.com>2016-09-06 10:04:12 +0200
committerPaul Olav Tvete <paul.tvete@qt.io>2016-09-08 13:26:25 +0000
commit7310fd4c925df7a3de0ae63e44ba0627228adc84 (patch)
treefd637e07f343f3e572cc2d1135042c26030b216f /src/compositor/compositor_api/qwaylandsurface.cpp
parentda61739728b2df7981b898da5dbdd4b74be068fc (diff)
Rename QWaylandView::attach() to bufferCommitted()
The old name was wrong on two counts: first of all, the function is called on wl_surface.commit, not attach. Secondly, the imperative tense made it look like a function that can be called by the user. Change-Id: Icd872d430062e67154bd50ca7d79881ea9874152 Reviewed-by: Johan Helsing <johan.helsing@qt.io> Reviewed-by: Pier Luigi Fiorini <pierluigi.fiorini@hawaiios.org>
Diffstat (limited to 'src/compositor/compositor_api/qwaylandsurface.cpp')
-rw-r--r--src/compositor/compositor_api/qwaylandsurface.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compositor/compositor_api/qwaylandsurface.cpp b/src/compositor/compositor_api/qwaylandsurface.cpp
index ea94433bb..c00d765c5 100644
--- a/src/compositor/compositor_api/qwaylandsurface.cpp
+++ b/src/compositor/compositor_api/qwaylandsurface.cpp
@@ -337,7 +337,7 @@ void QWaylandSurfacePrivate::setBackBuffer(QtWayland::SurfaceBuffer *b, const QR
damage = d.intersected(QRect(QPoint(), size));
for (int i = 0; i < views.size(); i++) {
- views.at(i)->attach(bufferRef, damage);
+ views.at(i)->bufferCommitted(bufferRef, damage);
}
emit q->damaged(damage);
@@ -836,7 +836,7 @@ void QWaylandSurfacePrivate::refView(QWaylandView *view)
views.append(view);
ref();
QWaylandBufferRef ref(buffer);
- view->attach(ref, QRect(QPoint(0,0), ref.size()));
+ view->bufferCommitted(ref, QRect(QPoint(0,0), ref.size()));
}
void QWaylandSurfacePrivate::derefView(QWaylandView *view)