Update comments

This commit is contained in:
Mitchell Hashimoto
2022-04-29 19:28:04 -07:00
parent dcf0194a2f
commit e0a6836cbd

View File

@ -363,7 +363,11 @@ fn focusCallback(window: glfw.Window, focused: bool) void {
defer tracy.end(); defer tracy.end();
const win = window.getUserPointer(Window) orelse return; const win = window.getUserPointer(Window) orelse return;
// We have to schedule a render because no matter what we're changing
// the cursor.
win.render_timer.schedule() catch unreachable; win.render_timer.schedule() catch unreachable;
if (focused) { if (focused) {
win.wakeup = true; win.wakeup = true;
win.cursor_timer.start(cursorTimerCallback, 0, win.cursor_timer.getRepeat()) catch unreachable; win.cursor_timer.start(cursorTimerCallback, 0, win.cursor_timer.getRepeat()) catch unreachable;