mirror of
https://github.com/YaLTeR/niri.git
synced 2024-09-11 20:37:25 +03:00
fix pre_commit_hook
This commit is contained in:
parent
10e59040c4
commit
8a1803ed66
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user