Notify window before presentation

This commit is contained in:
Héctor Ramón Jiménez 2025-03-18 18:22:39 +01:00
parent 363b0e903a
commit 31b98ee3eb
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
5 changed files with 29 additions and 2 deletions

View file

@ -322,6 +322,7 @@ where
viewport: &graphics::Viewport,
background_color: Color,
overlay: &[T],
on_pre_present: impl FnOnce(),
) -> Result<(), compositor::SurfaceError> {
match (self, renderer, surface) {
(
@ -334,6 +335,7 @@ where
viewport,
background_color,
overlay,
on_pre_present,
),
(
Self::Secondary(compositor),
@ -345,6 +347,7 @@ where
viewport,
background_color,
overlay,
on_pre_present,
),
_ => unreachable!(),
}