refactor: change PopupSurface args to PopupKind of position_popup_within_rect() paths

- to support InputMethod popup kind in later commit
This commit is contained in:
KENZ 2026-04-24 06:31:35 +09:00 • committed by Jacob Kauffmann
parent f62c88a3d9
commit 7a10fb1cc8
3 changed files with 45 additions and 33 deletions

View file

@ -65,7 +65,10 @@ impl XdgShellHandler for State {
if surface.get_parent_surface().is_some() {
// let other shells deal with their popups
self.common.shell.read().unconstrain_popup(&surface);
self.common
.shell
.read()
.unconstrain_popup(&PopupKind::from(surface.clone()));
if let Err(err) = surface.send_configure() {
warn!("Unable to configure popup. {err:?}",);
@ -165,7 +168,10 @@ impl XdgShellHandler for State {
state.positioner = positioner;
});
self.common.shell.read().unconstrain_popup(&surface);
self.common
.shell
.read()
.unconstrain_popup(&PopupKind::from(surface.clone()));
surface.send_repositioned(token);
}