Revert "wl_unmap: force commit sibling toplevels to clear stale popup pixels"
This reverts commit a9397b8291.
This commit is contained in:
parent
3e5c594d6f
commit
1b04023591
|
|
@ -211,25 +211,8 @@ static void wl_unmap(void *vctx, W_View *view)
|
||||||
/* Disable the scene buffer so the view disappears from screen. */
|
/* Disable the scene buffer so the view disappears from screen. */
|
||||||
if (W_ViewSceneNodeSetEnabledFn)
|
if (W_ViewSceneNodeSetEnabledFn)
|
||||||
W_ViewSceneNodeSetEnabledFn((unsigned long)view->window, 0);
|
W_ViewSceneNodeSetEnabledFn((unsigned long)view->window, 0);
|
||||||
if (view->parent && view->parent->flags.mapped) {
|
if (view->parent && view->parent->flags.mapped)
|
||||||
wl_redisplay(vctx, view->parent);
|
wl_redisplay(vctx, view->parent);
|
||||||
/* Force commit of the parent backing so stale pixels from
|
|
||||||
* previous composites (via wl_redisplay line 530) are cleared.
|
|
||||||
* If the parent itself cannot be committed (e.g. rootView),
|
|
||||||
* commit all topLevel children that have a client backing. */
|
|
||||||
extern void (*W_ViewCommitBackingFn)(unsigned long id);
|
|
||||||
if (W_ViewCommitBackingFn) {
|
|
||||||
W_View *parent = view->parent;
|
|
||||||
W_View *child = parent->childrenList;
|
|
||||||
while (child) {
|
|
||||||
if (child->flags.topLevel && child->flags.realized
|
|
||||||
&& child != view)
|
|
||||||
W_ViewCommitBackingFn(
|
|
||||||
(unsigned long)child->window);
|
|
||||||
child = child->nextSister;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void wl_unmap_subviews(void *vctx, W_View *view)
|
static void wl_unmap_subviews(void *vctx, W_View *view)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue