renderer: handle renderer pause/redraw on occlusion

This commit is contained in:
Mitchell Hashimoto
2024-02-13 09:21:04 -08:00
parent 7548ac368e
commit e1908f7cc7
3 changed files with 54 additions and 28 deletions

View File

@@ -13,6 +13,11 @@ pub const Message = union(enum) {
/// the renderer is expected to handle all of these.
focus: bool,
/// A change in the view occlusion state. This can be used to determine
/// if the window is visible or not. A window can be not visible (occluded)
/// and still have focus.
visible: bool,
/// Reset the cursor blink by immediately showing the cursor then
/// restarting the timer.
reset_cursor_blink: void,