mirror of
https://github.com/brl/mutter.git
synced 2024-12-27 13:22:15 +00:00
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:
parent
1f90529365
commit
239b39cf52
@ -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) &&
|
||||
|
Loading…
Reference in New Issue
Block a user