Revert "set flags again on QEvent::Expose"

This reverts commit 65ab514a2c.
This commit is contained in:
Marco Martin 2014-10-08 14:06:10 +02:00
parent 65ab514a2c
commit 9796f043b7

View File

@ -930,10 +930,8 @@ void Dialog::setType(WindowType type)
if (type == Dock) {
KWindowSystem::setOnAllDesktops(winId(), true);
KWindowSystem::setState(winId(), NET::KeepAbove);
} else {
KWindowSystem::setOnAllDesktops(winId(), false);
KWindowSystem::clearState(winId(), NET::KeepAbove);
}
emit typeChanged();
@ -995,19 +993,6 @@ bool Dialog::event(QEvent *event)
d->updateVisibility(false);
}
if (event->type() == QEvent::Expose) {
KWindowSystem::setType(winId(), (NET::WindowType)d->type);
if (d->type == Dock) {
KWindowSystem::setOnAllDesktops(winId(), true);
KWindowSystem::setState(winId(), NET::KeepAbove);
raise();
} else {
KWindowSystem::setOnAllDesktops(winId(), false);
KWindowSystem::clearState(winId(), NET::KeepAbove);
}
}
const bool retval = QQuickWindow::event(event);
if (event->type() != QEvent::DeferredDelete) {
KWindowSystem::setState(winId(), NET::SkipTaskbar | NET::SkipPager);