fix: check layer map for root popup surface

This commit is contained in:
Ashley Wulber 2025-07-31 14:10:34 -04:00 committed by Victoria Brekenfeld
parent a409770df7
commit e1aa8f7cb4
2 changed files with 68 additions and 40 deletions

View file

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