Check-in [54b1873e8d]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix wrong button codes in WM_MOUSEMOVE.
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 54b1873e8ddee6faeefe846fb3ec31e5f43f823a
User & Date: simon 2001-05-13 10:01:36.000
Context
2001-05-13
11:13
Fix the sense of posdiff(), causing the extend-selection mouse action to work correctly again. check-in: 053c2208c8 user: simon tags: trunk
10:01
Fix wrong button codes in WM_MOUSEMOVE. check-in: 54b1873e8d user: simon tags: trunk
09:42
Glenn Maynard's patch (as adapted by Jacob) for taskbar flashing when a bell occurs and the window is minimised. check-in: ea3235431d user: simon tags: trunk
Changes
Unified Diff Ignore Whitespace Patch
Changes to window.c.
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
	 * number noise.
	 */
	noise_ultralight(lParam);

	if (wParam & (MK_LBUTTON | MK_MBUTTON | MK_RBUTTON)) {
	    Mouse_Button b;
	    if (wParam & MK_LBUTTON)
		b = MBT_SELECT;
	    else if (wParam & MK_MBUTTON)
		b = cfg.mouse_is_xterm ? MBT_PASTE : MBT_EXTEND;
	    else
		b = cfg.mouse_is_xterm ? MBT_EXTEND : MBT_PASTE;
	    term_mouse(b, MA_DRAG, TO_CHR_X(X_POS(lParam)),
		       TO_CHR_Y(Y_POS(lParam)), wParam & MK_SHIFT,
		       wParam & MK_CONTROL);
	}
	return 0;
      case WM_NCMOUSEMOVE:
	show_mouseptr(1);







|

|

|







1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
	 * number noise.
	 */
	noise_ultralight(lParam);

	if (wParam & (MK_LBUTTON | MK_MBUTTON | MK_RBUTTON)) {
	    Mouse_Button b;
	    if (wParam & MK_LBUTTON)
		b = MBT_LEFT;
	    else if (wParam & MK_MBUTTON)
		b = MBT_MIDDLE;
	    else
		b = MBT_RIGHT;
	    term_mouse(b, MA_DRAG, TO_CHR_X(X_POS(lParam)),
		       TO_CHR_Y(Y_POS(lParam)), wParam & MK_SHIFT,
		       wParam & MK_CONTROL);
	}
	return 0;
      case WM_NCMOUSEMOVE:
	show_mouseptr(1);