fix pre_commit_hook

This commit is contained in:
Christian Meissl 2024-06-22 20:36:41 +02:00
parent 10e59040c4
commit 8a1803ed66

View File

@ -1002,7 +1002,7 @@ pub fn add_mapped_toplevel_pre_commit_hook(toplevel: &ToplevelSurface) -> HookId
let (got_unmapped, commit_serial) = with_states(surface, |states| {
let got_unmapped = {
let mut guard = states.cached_state.get::<SurfaceAttributes>();
matches!(guard.current().buffer, Some(BufferAssignment::Removed))
matches!(guard.pending().buffer, Some(BufferAssignment::Removed))
};
let role = states