From 279ee107c9dab7a882389ee8a26e925e8456be5e Mon Sep 17 00:00:00 2001 From: Campbell Jones Date: Sun, 15 Oct 2023 20:57:09 -0400 Subject: [PATCH] Fix segfault when clicking on an Xwayland view --- src/surface/xwayland_view.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/surface/xwayland_view.cpp b/src/surface/xwayland_view.cpp index eac84d4ed..b7b6f6cd8 100644 --- a/src/surface/xwayland_view.cpp +++ b/src/surface/xwayland_view.cpp @@ -196,6 +196,7 @@ void XWaylandView::map() { wlr_scene_tree* scene_tree = wlr_scene_subsurface_tree_create(&server.scene->tree, xwayland_surface.surface); scene_node = &scene_tree->node; + scene_node->data = this; if (xwayland_surface.parent != nullptr) { auto* m_view = dynamic_cast(static_cast(xwayland_surface.parent->data));