aboutsummaryrefslogtreecommitdiff
path: root/src/handlers/layer_shell.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/handlers/layer_shell.rs')
-rw-r--r--src/handlers/layer_shell.rs18
1 files changed, 1 insertions, 17 deletions
diff --git a/src/handlers/layer_shell.rs b/src/handlers/layer_shell.rs
index fd2c592f..7678ccc1 100644
--- a/src/handlers/layer_shell.rs
+++ b/src/handlers/layer_shell.rs
@@ -174,24 +174,8 @@ impl State {
self.niri.layer_shell_on_demand_focus = Some(layer.clone());
}
} else {
- let was_mapped = self.niri.mapped_layer_surfaces.remove(layer).is_some();
+ self.niri.mapped_layer_surfaces.remove(layer);
self.niri.unmapped_layer_surfaces.insert(surface.clone());
-
- // After layer surface unmaps it has to perform the initial commit-configure
- // sequence again. This is a workaround until Smithay properly resets
- // initial_configure_sent upon the surface unmapping itself as it does for
- // toplevels.
- if was_mapped {
- with_states(surface, |states| {
- let mut data = states
- .data_map
- .get::<LayerSurfaceData>()
- .unwrap()
- .lock()
- .unwrap();
- data.initial_configure_sent = false;
- });
- }
}
} else {
let scale = output.current_scale();