diff options
Diffstat (limited to 'examples/wayland/server-buffer/compositor/main.cpp')
-rw-r--r-- | examples/wayland/server-buffer/compositor/main.cpp | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/examples/wayland/server-buffer/compositor/main.cpp b/examples/wayland/server-buffer/compositor/main.cpp index 9f0108fa1..6d408b1b7 100644 --- a/examples/wayland/server-buffer/compositor/main.cpp +++ b/examples/wayland/server-buffer/compositor/main.cpp @@ -97,7 +97,6 @@ public: signals: void windowAdded(QVariant window); - void windowDestroyed(QVariant window); void windowResized(QVariant window); void serverBufferItemCreated(QVariant); void serverBuffersCreated(); @@ -115,16 +114,6 @@ private slots: emit windowAdded(QVariant::fromValue(surface)); } - void surfaceUnmapped() { - QWaylandSurface *surface = qobject_cast<QWaylandSurface *>(sender()); - emit windowDestroyed(QVariant::fromValue(surface)); - } - - void surfaceDestroyed(QObject *object) { - QWaylandSurface *surface = static_cast<QWaylandSurface *>(object); - emit windowDestroyed(QVariant::fromValue(surface)); - } - void sendCallbacks() { sendFrameCallbacks(surfaces()); } @@ -213,7 +202,6 @@ protected: void surfaceCreated(QWaylandSurface *surface) { connect(surface, SIGNAL(mapped()), this, SLOT(surfaceMapped())); - connect(surface,SIGNAL(unmapped()), this,SLOT(surfaceUnmapped())); } void share_buffer_bind_resource(Resource *resource) Q_DECL_OVERRIDE |