aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIsaac Freund <mail@isaacfreund.com>2023-06-05 19:49:39 +0200
committerIsaac Freund <mail@isaacfreund.com>2023-06-05 19:49:39 +0200
commit6e2169a149c6dd537bf0cd2178983bd5b0812d55 (patch)
tree7da4dfe38a9a9307632c7a6e39923fc20b0c51e6
parent792d94253c191e653e4025a648d574d9f8ce99bf (diff)
downloadriver-6e2169a149c6dd537bf0cd2178983bd5b0812d55.tar.gz
river-6e2169a149c6dd537bf0cd2178983bd5b0812d55.tar.xz
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.
-rw-r--r--river/XdgToplevel.zig1
1 files changed, 1 insertions, 0 deletions
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);