/[emacs]/emacs/src/w32term.c
ViewVC logotype

Diff of /emacs/src/w32term.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.191 by jasonr, Tue May 27 21:18:22 2003 UTC revision 1.192 by lektu, Tue May 27 22:34:58 2003 UTC
# Line 4451  w32_read_socket (sd, bufp, numchars, exp Line 4451  w32_read_socket (sd, bufp, numchars, exp
4451                    }                    }
4452                }                }
4453    
4454              button = ( GET_WHEEL_DELTA_WPARAM (msg.msg.wParam) < 0 )? 4 : 3;              button = (GET_WHEEL_DELTA_WPARAM (msg.msg.wParam) < 0)? 4 : 3;
4455    
4456              if (up)              if (up)
4457                {                {
# Line 4816  w32_read_socket (sd, bufp, numchars, exp Line 4816  w32_read_socket (sd, bufp, numchars, exp
4816            break;            break;
4817    
4818          default:          default:
4819            /* Check for messages registered at runtime. */            /* Check for messages registered at runtime.  */
4820            if (msg.msg.message == msh_mousewheel)            if (msg.msg.message == msh_mousewheel)
4821              {              {
4822                if (dpyinfo->grabbed && last_mouse_frame                /* Forward MSH_MOUSEWHEEL as WM_MOUSEWHEEL.  */
4823                    && FRAME_LIVE_P (last_mouse_frame))                msg.msg.message == WM_MOUSEWHEEL;
4824                  f = last_mouse_frame;                prepend_msg (&msg);
               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--;  
                     }  
                 }  
4825              }              }
4826            break;            break;
4827          }          }

Legend:
Removed from v.1.191  
changed lines
  Added in v.1.192

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26