diff options
Diffstat (limited to 'src/mcompositemanager.cpp')
-rw-r--r-- | src/mcompositemanager.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mcompositemanager.cpp b/src/mcompositemanager.cpp index ae8924b..ea47567 100644 --- a/src/mcompositemanager.cpp +++ b/src/mcompositemanager.cpp @@ -2433,9 +2433,12 @@ void MCompositeManagerPrivate::mapEvent(XMapEvent *e) } stack_and_return: - if (!pc || (e->event != QX11Info::appRootWindow()) || !item) + if (!pc || (e->event != QX11Info::appRootWindow()) || !item) { // only handle the MapNotify sent for the root window + prop_caches.remove(win); + delete wpc; return; + } bool stacked = false; if (configure_reqs.contains(win)) { |