summaryrefslogtreecommitdiff
path: root/src/helpers/SubsurfaceTree.cpp
diff options
context:
space:
mode:
authorVaxry <43317083+vaxerski@users.noreply.github.com>2022-08-28 10:14:43 +0200
committerGitHub <noreply@github.com>2022-08-28 10:14:43 +0200
commit52c0ba544c55695b0fb0e3c5e9871fe599f7d36d (patch)
treefe41941854970f4ef9dcd20627fe49ae18a21883 /src/helpers/SubsurfaceTree.cpp
parent8b5c64c8fd1e911965a217ee4980a327208afdf7 (diff)
Viewporter implementaion (#585)
Implementation of the `wp_viewporter` core protocol and some bugfixes
Diffstat (limited to 'src/helpers/SubsurfaceTree.cpp')
-rw-r--r--src/helpers/SubsurfaceTree.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/helpers/SubsurfaceTree.cpp b/src/helpers/SubsurfaceTree.cpp
index f2542486..e0e1f3c9 100644
--- a/src/helpers/SubsurfaceTree.cpp
+++ b/src/helpers/SubsurfaceTree.cpp
@@ -139,6 +139,9 @@ void Events::listener_newSubsurfaceNode(void* owner, void* data) {
PNEWSUBSURFACE->pWindowOwner = pNode->pWindowOwner;
+ if (PSUBSURFACE->mapped)
+ listener_mapSubsurface(PNEWSUBSURFACE, nullptr);
+
wlr_subsurface* existingWlrSubsurface;
wl_list_for_each(existingWlrSubsurface, &PSUBSURFACE->surface->current.subsurfaces_below, current.link) {
listener_newSubsurfaceNode(pNode, existingWlrSubsurface);