layer: Fix panic on destroying layer-shell surface
This commit is contained in:
parent
48c071466f
commit
2bafd2230d
1 changed files with 8 additions and 6 deletions
|
|
@ -66,12 +66,14 @@ impl WlrLayerShellHandler for State {
|
||||||
.cloned();
|
.cloned();
|
||||||
|
|
||||||
if let Some(output) = maybe_output {
|
if let Some(output) = maybe_output {
|
||||||
let mut map = layer_map_for_output(&output);
|
{
|
||||||
let layer = map
|
let mut map = layer_map_for_output(&output);
|
||||||
.layer_for_surface(surface.wl_surface(), WindowSurfaceType::TOPLEVEL)
|
let layer = map
|
||||||
.unwrap()
|
.layer_for_surface(surface.wl_surface(), WindowSurfaceType::TOPLEVEL)
|
||||||
.clone();
|
.unwrap()
|
||||||
map.unmap_layer(&layer);
|
.clone();
|
||||||
|
map.unmap_layer(&layer);
|
||||||
|
}
|
||||||
|
|
||||||
// collect screencopy sessions needing an update
|
// collect screencopy sessions needing an update
|
||||||
let mut scheduled_sessions = self.schedule_workspace_sessions(surface.wl_surface());
|
let mut scheduled_sessions = self.schedule_workspace_sessions(surface.wl_surface());
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue