Skip to content

Commit a3c0ed7

Browse files
committed
(#3) Added configurable highlight timeout
2 parents a8f66af + 05f5326 commit a3c0ed7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/window_win32.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ void Window::show(int duration, float opacity) {
5151
return;
5252
}
5353

54-
SetTimer(hwnd, ID_CLOSE_TIMER, 2000, NULL);
54+
SetTimer(hwnd, ID_CLOSE_TIMER, duration * 1000, NULL);
5555
ShowWindow(hwnd, 1);
5656

5757
MSG msg = { };

0 commit comments

Comments
 (0)