aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorVaxry <[email protected]>2024-08-01 15:43:13 +0200
committerVaxry <[email protected]>2024-08-01 15:43:19 +0200
commitab0a3268e04f2295ec4455be90ce8d0c2b107b8d (patch)
tree7380c8225c111ac9c2fc31fb0f959b7bb2ba0c51
parentc8873b958dd9330c364339ac4ab58e32b27d82b4 (diff)
downloadHyprland-ab0a3268e04f2295ec4455be90ce8d0c2b107b8d.tar.gz
Hyprland-ab0a3268e04f2295ec4455be90ce8d0c2b107b8d.zip
xdg-shell: fixup unassigned wl surfaces to xdg surfaces
fixes #7133
-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);