修复删除窗口导致的底层窗口可能毛边的问题

This commit is contained in:
houzh 2023-11-18 17:34:17 +08:00
parent 283936d0f9
commit 398ef50e0d

View File

@ -125,8 +125,7 @@ void WindowManager::removeWindow(Window*w){
Rect rc = w1->getBound();
rc.intersect(wrect);
rc.offset(-w1->getLeft(),-w1->getTop());
w1->invalidate(&rc);
w1->mPendingRgn->do_union({rc.left,rc.top,rc.width,rc.height});
w1->mPendingRgn->do_union({rc.left,rc.top,rc.width,rc.height});
}
#if USE_UIEVENTHANDLER
Looper::getDefault()->removeHandler(w->mUIEventHandler);