changeset 51270:827c306f0515

Add missing code from previous patch by David Ponce.
author Juanma Barranquero <lekktu@gmail.com>
date Tue, 27 May 2003 22:34:58 +0000
parents 0e4f36767c58
children ff87ff02952e
files src/w32term.c
diffstat 1 files changed, 5 insertions(+), 20 deletions(-) [+]
line wrap: on
line diff
--- a/src/w32term.c	Tue May 27 21:18:22 2003 +0000
+++ b/src/w32term.c	Tue May 27 22:34:58 2003 +0000
@@ -4451,7 +4451,7 @@
 		  }
 	      }
 
-	    button = ( GET_WHEEL_DELTA_WPARAM (msg.msg.wParam) < 0 )? 4 : 3;
+	    button = (GET_WHEEL_DELTA_WPARAM (msg.msg.wParam) < 0)? 4 : 3;
 
 	    if (up)
 	      {
@@ -4816,27 +4816,12 @@
 	  break;
 
 	default:
-	  /* Check for messages registered at runtime. */
+	  /* Check for messages registered at runtime.  */
 	  if (msg.msg.message == msh_mousewheel)
 	    {
-	      if (dpyinfo->grabbed && last_mouse_frame
-		  && FRAME_LIVE_P (last_mouse_frame))
-		f = last_mouse_frame;
-	      else
-		f = x_window_to_frame (dpyinfo, msg.msg.hwnd);
-
-	      if (f)
-		{
-		  if ((!dpyinfo->w32_focus_frame
-		       || f == dpyinfo->w32_focus_frame)
-		      && (numchars >= 1))
-		    {
-		      construct_mouse_wheel (bufp, &msg, f);
-		      bufp++;
-		      count++;
-		      numchars--;
-		    }
-		}
+	      /* Forward MSH_MOUSEWHEEL as WM_MOUSEWHEEL.  */
+	      msg.msg.message == WM_MOUSEWHEEL;
+	      prepend_msg (&msg);
 	    }
 	  break;
 	}