https://bugs.kde.org/show_bug.cgi?id=371568

--- Comment #5 from Martin Gräßlin <mgraess...@kde.org> ---
Ok, found the problematic code:
void KisMainWindow::showEvent(QShowEvent *e)
{
    KXmlGuiWindow::showEvent(e);

    if (!d->geometryInitialized) {
        /**
         * We should move the window only *after* it has been shown on
         * screen, otherwise it will become owned by a wrong screen, which
         * will make positioning of all the child widgets wrong.
         * (see bug https://bugs.kde.org/show_bug.cgi?id=362025)
         *
         * This is actually a bug/feature of Qt 5.5.x and it has been
         * fixed in Qt 5.6.0. So we can avoid this delay on newer versions
         * of Qt.
         */
        QTimer::singleShot(1, this, SLOT(initializeGeometry()));
        d->geometryInitialized = true;
    }
}

Thus we have a show (normal geometry) with the initializeGeometry later. Which
is exactly what I observe in KWin.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to