fix: clean up pending_windows for surfaces that were never mapped

This commit is contained in:
Hojjat 2026-04-02 13:22:30 -06:00 committed by Victoria Brekenfeld
parent 1c9e80364f
commit 3e84968dac

View file

@ -315,6 +315,11 @@ impl XdgShellHandler for State {
let mut shell = self.common.shell.write(); let mut shell = self.common.shell.write();
let seat = shell.seats.last_active().clone(); let seat = shell.seats.last_active().clone();
// Clean up pending_windows for surfaces that were never mapped.
shell
.pending_windows
.retain(|pending| pending.surface != surface);
let output = shell let output = shell
.visible_output_for_surface(surface.wl_surface()) .visible_output_for_surface(surface.wl_surface())
.cloned(); .cloned();