Wayland compositor (wlroots)
git clone https://git.lucas.co/cce-compositor.git
XdgToplevel: store scene node in wlr_surface data
This was accidentally removed in 05eac54b077, which broke
SceneNodeData.fromSurface() for xdg_toplevels.
This means that thing such as xdg-activation and idle inhibit didn't
work since that commit and should work again starting from this commit.
river/XdgToplevel.zig | 1 +
1 file changed, 1 insertion(+)
diff --git a/river/XdgToplevel.zig b/river/XdgToplevel.zig
index 0b5296c..e9b4d2d 100644
--- a/river/XdgToplevel.zig
+++ b/river/XdgToplevel.zig
@@ -86,6 +86,7 @@ pub fn create(xdg_toplevel: *wlr.XdgToplevel) error{OutOfMemory}!void {
self.view = view;
xdg_toplevel.base.data = @ptrToInt(self);
+ xdg_toplevel.base.surface.data = @ptrToInt(&view.tree.node);
// Add listeners that are active over the toplevel's entire lifetime
xdg_toplevel.base.events.destroy.add(&self.destroy);