Skip to content

Commit

Permalink
xdg_popup: copy parent properties during construction
Browse files Browse the repository at this point in the history
  • Loading branch information
mahkoh committed Oct 17, 2024
1 parent a2eb810 commit cf5d544
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ifs/wl_surface/xdg_surface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,8 @@ impl XdgSurfaceRequestHandler for XdgSurface {
workspace_link: Default::default(),
});
popup.parent.set(Some(user.clone()));
popup.xdg.set_popup_stack(&parent.popup_display_stack.get());
popup.xdg.set_output(&parent.surface.output.get());
parent.popups.set(req.id, user);
}
self.ext.set(Some(popup));
Expand Down

0 comments on commit cf5d544

Please sign in to comment.