diff --git a/src/wayland/surface_interface.cpp b/src/wayland/surface_interface.cpp index 755bc0fc0b..3d1fcc6e23 100644 --- a/src/wayland/surface_interface.cpp +++ b/src/wayland/surface_interface.cpp @@ -317,7 +317,11 @@ void SurfaceInterfacePrivate::surface_set_input_region(Resource *resource, struc void SurfaceInterfacePrivate::surface_commit(Resource *resource) { Q_UNUSED(resource) - commit(); + if (subSurface) { + commitSubSurface(); + } else { + applyState(&pending); + } } void SurfaceInterfacePrivate::surface_set_buffer_transform(Resource *resource, int32_t transform) @@ -667,15 +671,6 @@ void SurfaceInterfacePrivate::applyState(SurfaceState *next) Q_EMIT q->committed(); } -void SurfaceInterfacePrivate::commit() -{ - if (subSurface) { - commitSubSurface(); - } else { - applyState(&pending); - } -} - void SurfaceInterfacePrivate::commitSubSurface() { if (subSurface->isSynchronized()) { diff --git a/src/wayland/surface_interface_p.h b/src/wayland/surface_interface_p.h index 97724b27df..d038dc4926 100644 --- a/src/wayland/surface_interface_p.h +++ b/src/wayland/surface_interface_p.h @@ -99,7 +99,6 @@ public: void commitToCache(); void commitFromCache(); - void commit(); void commitSubSurface(); QMatrix4x4 buildSurfaceToBufferMatrix(const SurfaceState *state); void applyState(SurfaceState *next);