Avoid parenting popups to other popups

Fixes #36
This commit is contained in:
Shawn Wallace 2025-04-22 21:39:20 -04:00
parent 2b5288b4b9
commit c31679aa41
3 changed files with 47 additions and 6 deletions

View file

@ -1202,8 +1202,8 @@ impl<C: XConnection> ServerState<C> {
initial_scale = parent_surface.scale_factor;
debug!(
"creating popup ({:?}) {:?} {:?} {:?} {surface_key:?} (scale: {initial_scale})",
window.window, parent, window.attrs.dims, surface_id
"creating popup ({:?}) {:?} {:?} {:?} {:?} {surface_key:?} (scale: {initial_scale})",
window.window, parent, window.attrs.dims, surface_id, xdg_surface.id()
);
let positioner = self.xdg_wm_base.create_positioner(&self.qh, ());