summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-11-18 15:21:50 +0100
committerBram Moolenaar <Bram@vim.org>2020-11-18 15:21:50 +0100
commit032f40afb88b24043f96655aa248267a4f54faa8 (patch)
tree68860ddd14edbac9afe422979e474cae1ef0961f
parent17ab28daa060c3c263841329e74befb9c6e8b588 (diff)
patch 8.2.2008: MS-Windows GUI: handling channel messages lagsv8.2.2008
Problem: MS-Windows GUI: handling channel messages lags. Solution: Reduce the wait time from 100 to 10 msec. (closes #7097)
-rw-r--r--src/gui_w32.c9
-rw-r--r--src/version.c2
2 files changed, 8 insertions, 3 deletions
diff --git a/src/gui_w32.c b/src/gui_w32.c
index b296861440..80a70e25ce 100644
--- a/src/gui_w32.c
+++ b/src/gui_w32.c
@@ -2134,7 +2134,10 @@ gui_mch_wait_for_chars(int wtime)
break;
}
else if (input_available()
- || MsgWaitForMultipleObjects(0, NULL, FALSE, 100,
+ // TODO: The 10 msec is a compromise between laggy response
+ // and consuming more CPU time. Better would be to handle
+ // channel messages when they arrive.
+ || MsgWaitForMultipleObjects(0, NULL, FALSE, 10,
QS_ALLINPUT) != WAIT_TIMEOUT)
break;
}
@@ -8458,7 +8461,7 @@ make_tooltip(BalloonEval *beval, char *text, POINT pt)
TOOLINFOW *pti;
int ToolInfoSize;
- if (multiline_balloon_available() == TRUE)
+ if (multiline_balloon_available())
ToolInfoSize = sizeof(TOOLINFOW_NEW);
else
ToolInfoSize = sizeof(TOOLINFOW);
@@ -8481,7 +8484,7 @@ make_tooltip(BalloonEval *beval, char *text, POINT pt)
pti->hinst = 0; // Don't use string resources
pti->uId = ID_BEVAL_TOOLTIP;
- if (multiline_balloon_available() == TRUE)
+ if (multiline_balloon_available())
{
RECT rect;
TOOLINFOW_NEW *ptin = (TOOLINFOW_NEW *)pti;
diff --git a/src/version.c b/src/version.c
index cc296f5d69..a96756de07 100644
--- a/src/version.c
+++ b/src/version.c
@@ -751,6 +751,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 2008,
+/**/
2007,
/**/
2006,