Diff

Differences From Artifact [a4998472c2]:

To Artifact [c0a749b3b6]:


1047
1048
1049
1050
1051
1052
1053

1054
1055
1056
1057
1058
1059
1060
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061







+








    switch (message) {
      case WM_TIMER:
	if (pending_netevent)
	    enact_pending_netevent();
	if (inbuf_head)
	    term_out();
        noise_regular();
        HideCaret(hwnd);
	term_update();
        ShowCaret(hwnd);
	if (cfg.ping_interval > 0)
        {
           time_t now;
           time(&now);
1284
1285
1286
1287
1288
1289
1290
1291

1292
1293
1294

1295
1296
1297
1298
1299
1300
1301
1285
1286
1287
1288
1289
1290
1291

1292
1293


1294
1295
1296
1297
1298
1299
1300
1301







-
+

-
-
+







		    MA_RELEASE, TO_CHR_X(X_POS(lParam)),
		    TO_CHR_Y(Y_POS(lParam)));
        ReleaseCapture();
	return 0;
      case WM_MOUSEMOVE:
	/*
	 * Add the mouse position and message time to the random
	 * number noise, if we're using ssh.
	 * number noise.
	 */
	if (cfg.protocol == PROT_SSH)
	    noise_ultralight(lParam);
        noise_ultralight(lParam);

	if (wParam & (MK_LBUTTON | MK_MBUTTON | MK_RBUTTON)) {
	    Mouse_Button b;
	    if (wParam & MK_LBUTTON)
		b = MB_SELECT;
	    else if (wParam & MK_MBUTTON)
		b = cfg.mouse_is_xterm ? MB_PASTE : MB_EXTEND;
1482
1483
1484
1485
1486
1487
1488
1489

1490
1491
1492

1493
1494
1495
1496
1497
1498
1499
1482
1483
1484
1485
1486
1487
1488

1489
1490


1491
1492
1493
1494
1495
1496
1497
1498







-
+

-
-
+







	return FALSE;
      case WM_KEYDOWN:
      case WM_SYSKEYDOWN:
      case WM_KEYUP:
      case WM_SYSKEYUP:
	/*
	 * Add the scan code and keypress timing to the random
	 * number noise, if we're using ssh.
	 * number noise.
	 */
	if (cfg.protocol == PROT_SSH)
	    noise_ultralight(lParam);
        noise_ultralight(lParam);

	/*
	 * We don't do TranslateMessage since it disassociates the
	 * resulting CHAR message from the KEYDOWN that sparked it,
	 * which we occasionally don't want. Instead, we process
	 * KEYDOWN, and call the Win32 translator functions so that
	 * we get the translations under _our_ control.