From 6e2169a149c6dd537bf0cd2178983bd5b0812d55 Mon Sep 17 00:00:00 2001 From: Isaac Freund Date: Mon, 5 Jun 2023 19:49:39 +0200 Subject: [PATCH] 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);