Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions backend/src/os_windows.zig
Original file line number Diff line number Diff line change
Expand Up @@ -624,6 +624,11 @@ fn endTear(t: *Tear) void {

/// After the app's frame, before `dvui.Window.end`.
pub fn afterFrame() void {
// What dvui draws late — its Debug window, dialogs, toasts — drawn before the tear-off looks for
// the floating window being dragged: drawn after, the Debug window was not yet drawn (`used`)
// nor asked about (`closable`) when it looked, and never tore off (the user). Once a frame
// (`drawRetained` keeps to that), and `Window.end` would draw them here anyway.
if (viewports.tears()) dvui.currentWindow().drawRetained(.{});
tearFrame();
if (named_n == 0 and for (outs) |slot| {
if (slot != null) break false;
Expand Down
Loading