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

@ -40,7 +40,10 @@ impl WlrLayerShellHandler for State {
}
fn new_popup(&mut self, _parent: WlrLayerSurface, popup: PopupSurface) {
self.common.shell.read().unconstrain_popup(&popup);
self.common
.shell
.read()
.unconstrain_popup(&PopupKind::from(popup.clone()));
if let Err(err) = popup.send_configure() {
tracing::warn!("Unable to configure popup. {err:?}",);