surface: emit unmap before unmapping and releasing the buffers
This commit is contained in:
parent
7df9b01d48
commit
a9d87bd666
5 changed files with 5 additions and 6 deletions
|
|
@ -114,12 +114,11 @@ void CXWaylandSurface::unmap() {
|
|||
std::erase(g_pXWayland->pWM->mappedSurfacesStacking, self);
|
||||
|
||||
mapped = false;
|
||||
events.unmap.emit();
|
||||
surface->unmap();
|
||||
|
||||
Debug::log(LOG, "XWayland surface {:x} unmapping", (uintptr_t)this);
|
||||
|
||||
events.unmap.emit();
|
||||
|
||||
g_pXWayland->pWM->updateClientList();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue