Skip to content

Commit

Permalink
Fix segfault when clicking on an Xwayland view
Browse files Browse the repository at this point in the history
  • Loading branch information
serebit committed Oct 16, 2023
1 parent f0b456d commit 279ee10
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/surface/xwayland_view.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<View*>(static_cast<Surface*>(xwayland_surface.parent->data));
Expand Down

0 comments on commit 279ee10

Please sign in to comment.