Pass through all scroll events to compositor

As with other events, we want to pass through scroll events (button 4/5 presses)
to the compositor, whether or not they are associated with a particular MetaWindow;
do this by simply falling through to the normal code path instead of
separately delivering the events to the compositor.

http://bugzilla.gnome.org/show_bug.cgi?id=588232
This commit is contained in:
Owen W. Taylor 2009-07-28 19:10:09 -04:00
parent 1f90529365
commit 239b39cf52

View File

@ -1618,14 +1618,8 @@ event_callback (XEvent *event,
case ButtonPress:
if (event->xbutton.button == 4 || event->xbutton.button == 5)
{
if (display->compositor && window)
{
return meta_compositor_process_event (display->compositor,
event,
window);
}
else
return FALSE;
/* Scrollwheel event, do nothing and deliver event to compositor below
*/
}
else if ((window &&
grab_op_is_mouse (display->grab_op) &&