Revert "set flags again on QEvent::Expose"
This reverts commit 65ab514a2c
.
This commit is contained in:
parent
65ab514a2c
commit
9796f043b7
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user