[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master df53beb2db 1/2: Reduce poll time for Haiku file dialogs
From: |
Po Lu |
Subject: |
master df53beb2db 1/2: Reduce poll time for Haiku file dialogs |
Date: |
Sun, 16 Jan 2022 05:46:42 -0500 (EST) |
branch: master
commit df53beb2db4a3aeba24b43ac748538e7daf06f8c
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>
Reduce poll time for Haiku file dialogs
* src/haiku_support.c (be_popup_file_dialog): Reduce idle
processor load by increasing timeout. The timeout is still too
low to be noticable by the user.
---
src/haiku_support.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/haiku_support.cc b/src/haiku_support.cc
index 4b180f98b7..de2c798b65 100644
--- a/src/haiku_support.cc
+++ b/src/haiku_support.cc
@@ -2818,7 +2818,7 @@ be_popup_file_dialog (int open_p, const char
*default_dir, int must_match_p, int
enum haiku_event_type type;
char *ptr = NULL;
- if (!haiku_read_with_timeout (&type, buf, 200, 100000))
+ if (!haiku_read_with_timeout (&type, buf, 200, 1000000))
{
block_input_function ();
if (type != FILE_PANEL_EVENT)