gpui: Fix background window freezes on wayland (#53597)

Release Notes:

- N/A or Added/Fixed/Improved ...
This commit is contained in:
Lukas Wirth authored and GitHub committed 2026-04-10 13:08:13 +01:00
1 parent 23eb59ed8d
commit fa3f58321b
1 file changed
+7
+7
View File
@@ -1232,6 +1232,13 @@ impl Window {
if let Some(last_frame) = last_frame_time.get()
&& now.duration_since(last_frame) < min_interval
{
// Must still complete the frame on platforms that require it.
// On Wayland, `surface.frame()` was already called to request the
// next frame callback, so we must call `surface.commit()` (via
// `complete_frame`) or the compositor won't send another callback.
handle
.update(&mut cx, |_, window, _| window.complete_frame())
.log_err();
return;
}
}