#include "wlsubsurface.h"
#include "wlcompositor.h"
+#include "waylandsurface.h"
namespace Wayland {
if (m_parent) {
m_parent->removeSubSurface(this);
}
+ QLinkedList<WaylandSurface *>::iterator it;
+ for (it = m_sub_surfaces.begin(); it != m_sub_surfaces.end(); ++it) {
+ (*it)->handle()->subSurface()->parentDestroyed();
+ }
}
void SubSurface::setSubSurface(SubSurface *subSurface, int x, int y)
return m_sub_surfaces;
}
+void SubSurface::parentDestroyed()
+{
+ m_parent = 0;
+}
void SubSurface::attach_sub_surface(wl_client *client, wl_resource *sub_surface_parent_resource, wl_resource *sub_surface_child_resource, int32_t x, int32_t y)
{
Q_UNUSED(client);