1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-02-10 09:57:35 +03:00

clear unneeded component cache on leave event

This commit is contained in:
Michail Vourlakos 2018-01-28 12:49:35 +02:00
parent cfab941889
commit 723abbf0f9

View File

@ -1678,6 +1678,10 @@ bool DockView::event(QEvent *e)
emit eventTriggered(e);
switch (e->type()) {
case QEvent::Leave:
engine()->trimComponentCache();
break;
case QEvent::PlatformSurface:
if (auto pe = dynamic_cast<QPlatformSurfaceEvent *>(e)) {
switch (pe->surfaceEventType()) {