aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/protocols/XDGShell.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/protocols/XDGShell.cpp')
-rw-r--r--src/protocols/XDGShell.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/protocols/XDGShell.cpp b/src/protocols/XDGShell.cpp
index 71873374..5e82b530 100644
--- a/src/protocols/XDGShell.cpp
+++ b/src/protocols/XDGShell.cpp
@@ -666,8 +666,9 @@ CXDGWMBase::CXDGWMBase(SP<CXdgWmBase> resource_) : resource(resource_) {
return;
}
- RESOURCE->self = RESOURCE;
- SURF->role = RESOURCE;
+ RESOURCE->self = RESOURCE;
+ RESOURCE->surface = SURF;
+ SURF->role = RESOURCE;
surfaces.emplace_back(RESOURCE);