From 970018248f44d259cd16c0896862e8b4a464c9b9 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Tue, 31 May 2022 22:16:13 +0200 Subject: Don't damage surfaces coming from not rendered windows --- src/events/Popups.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/events/Popups.cpp') diff --git a/src/events/Popups.cpp b/src/events/Popups.cpp index dde2d46d..457a95fe 100644 --- a/src/events/Popups.cpp +++ b/src/events/Popups.cpp @@ -134,7 +134,7 @@ void Events::listener_mapPopupXDG(void* owner, void* data) { Debug::log(LOG, "New XDG Popup mapped at %d %d", (int)PPOPUP->lx, (int)PPOPUP->ly); - PPOPUP->pSurfaceTree = SubsurfaceTree::createTreeRoot(PPOPUP->popup->base->surface, addPopupGlobalCoords, PPOPUP); + PPOPUP->pSurfaceTree = SubsurfaceTree::createTreeRoot(PPOPUP->popup->base->surface, addPopupGlobalCoords, PPOPUP, PPOPUP->parentWindow); Debug::log(LOG, "XDG Popup got assigned a surfaceTreeNode %x", PPOPUP->pSurfaceTree); } -- cgit v1.2.3