shell: Fix re-render on toplevel_destroy
This commit is contained in:
parent
dec2092684
commit
24a48fdac6
1 changed files with 4 additions and 4 deletions
|
|
@ -274,15 +274,15 @@ impl XdgShellHandler for State {
|
||||||
let (output, clients) = {
|
let (output, clients) = {
|
||||||
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();
|
||||||
|
|
||||||
|
let output = shell
|
||||||
|
.visible_output_for_surface(surface.wl_surface())
|
||||||
|
.cloned();
|
||||||
shell.unmap_surface(
|
shell.unmap_surface(
|
||||||
surface.wl_surface(),
|
surface.wl_surface(),
|
||||||
&seat,
|
&seat,
|
||||||
&mut self.common.toplevel_info_state,
|
&mut self.common.toplevel_info_state,
|
||||||
);
|
);
|
||||||
|
|
||||||
let output = shell
|
|
||||||
.visible_output_for_surface(surface.wl_surface())
|
|
||||||
.cloned();
|
|
||||||
if let Some(output) = output.as_ref() {
|
if let Some(output) = output.as_ref() {
|
||||||
shell.refresh_active_space(output);
|
shell.refresh_active_space(output);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue