diff options
| author | Po Lu | 2022-01-16 10:12:22 +0000 |
|---|---|---|
| committer | Po Lu | 2022-01-16 10:12:22 +0000 |
| commit | df53beb2db4a3aeba24b43ac748538e7daf06f8c (patch) | |
| tree | c6ba34fde7313290e2db9a4c10e667637faaea2e /src | |
| parent | 0ae6491a899bf1642a06cac545f9cb31b33f1645 (diff) | |
| download | emacs-df53beb2db4a3aeba24b43ac748538e7daf06f8c.tar.gz emacs-df53beb2db4a3aeba24b43ac748538e7daf06f8c.zip | |
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.
Diffstat (limited to 'src')
| -rw-r--r-- | src/haiku_support.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/haiku_support.cc b/src/haiku_support.cc index 4b180f98b7c..de2c798b651 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 | |||
| 2818 | enum haiku_event_type type; | 2818 | enum haiku_event_type type; |
| 2819 | char *ptr = NULL; | 2819 | char *ptr = NULL; |
| 2820 | 2820 | ||
| 2821 | if (!haiku_read_with_timeout (&type, buf, 200, 100000)) | 2821 | if (!haiku_read_with_timeout (&type, buf, 200, 1000000)) |
| 2822 | { | 2822 | { |
| 2823 | block_input_function (); | 2823 | block_input_function (); |
| 2824 | if (type != FILE_PANEL_EVENT) | 2824 | if (type != FILE_PANEL_EVENT) |