Esempio n. 1
0
void LipstickCompositor::surfaceLowered()
{
    QWaylandSurface *surface = qobject_cast<QWaylandSurface *>(sender());
    LipstickCompositorWindow *window = static_cast<LipstickCompositorWindow *>(surface->surfaceItem());

    if (window) {
        emit windowLowered(window);
    }
}
Esempio n. 2
0
void Compositor::onSurfaceLowered()
{
    QtWayland::ExtendedSurface *extSurface = qobject_cast<QtWayland::ExtendedSurface*>(sender());
    QWaylandSurface *surface = qobject_cast<QWaylandSurface*>(extSurface->extensionContainer());
    CompositorWindow *window = surfaceWindow(surface);

    qWarning() << Q_FUNC_INFO << "the window " << window << "is going to be lowered";

    if (window)
        emit windowLowered(QVariant::fromValue(static_cast<QQuickItem*>(window)));
}