fix: clean up pending_windows for surfaces that were never mapped
This commit is contained in:
parent
1c9e80364f
commit
3e84968dac
1 changed files with 5 additions and 0 deletions
|
|
@ -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();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue