Do not unlist Unmanaged when released onShutdown

BUG: 303244
FIXED-IN: 4.9.2
REVIEW: 106382
This commit is contained in:
Thomas Lübking 2012-09-14 16:10:04 +02:00
parent cb265d96fc
commit 42ad299d88

View file

@ -88,13 +88,13 @@ void Unmanaged::release(bool on_shutdown)
}
emit windowClosed(this, del);
finishCompositing();
workspace()->removeUnmanaged(this, Allowed);
if (!QWidget::find(window())) { // don't affect our own windows
if (Extensions::shapeAvailable())
XShapeSelectInput(display(), window(), NoEventMask);
XSelectInput(display(), window(), NoEventMask);
}
if (!on_shutdown) {
workspace()->removeUnmanaged(this, Allowed);
addWorkspaceRepaint(del->visibleRect());
disownDataPassedToDeleted();
del->unrefWindow();