Skip to content

Commit 032f40a

Browse files
committed
patch 8.2.2008: MS-Windows GUI: handling channel messages lags
Problem: MS-Windows GUI: handling channel messages lags. Solution: Reduce the wait time from 100 to 10 msec. (closes #7097)
1 parent 17ab28d commit 032f40a

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

src/gui_w32.c

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2134,7 +2134,10 @@ gui_mch_wait_for_chars(int wtime)
21342134
break;
21352135
}
21362136
else if (input_available()
2137-
|| MsgWaitForMultipleObjects(0, NULL, FALSE, 100,
2137+
// TODO: The 10 msec is a compromise between laggy response
2138+
// and consuming more CPU time. Better would be to handle
2139+
// channel messages when they arrive.
2140+
|| MsgWaitForMultipleObjects(0, NULL, FALSE, 10,
21382141
QS_ALLINPUT) != WAIT_TIMEOUT)
21392142
break;
21402143
}
@@ -8458,7 +8461,7 @@ make_tooltip(BalloonEval *beval, char *text, POINT pt)
84588461
TOOLINFOW *pti;
84598462
int ToolInfoSize;
84608463

8461-
if (multiline_balloon_available() == TRUE)
8464+
if (multiline_balloon_available())
84628465
ToolInfoSize = sizeof(TOOLINFOW_NEW);
84638466
else
84648467
ToolInfoSize = sizeof(TOOLINFOW);
@@ -8481,7 +8484,7 @@ make_tooltip(BalloonEval *beval, char *text, POINT pt)
84818484
pti->hinst = 0; // Don't use string resources
84828485
pti->uId = ID_BEVAL_TOOLTIP;
84838486

8484-
if (multiline_balloon_available() == TRUE)
8487+
if (multiline_balloon_available())
84858488
{
84868489
RECT rect;
84878490
TOOLINFOW_NEW *ptin = (TOOLINFOW_NEW *)pti;

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -750,6 +750,8 @@ static char *(features[]) =
750750

751751
static int included_patches[] =
752752
{ /* Add new patch number below this line */
753+
/**/
754+
2008,
753755
/**/
754756
2007,
755757
/**/

0 commit comments

Comments
 (0)