From 239b39cf5288d9be27bca9e94d060ecde1ca1ca3 Mon Sep 17 00:00:00 2001 From: "Owen W. Taylor" Date: Tue, 28 Jul 2009 19:10:09 -0400 Subject: [PATCH] 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 --- src/core/display.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/core/display.c b/src/core/display.c index 3d97aa20a..fd3b2ee99 100644 --- a/src/core/display.c +++ b/src/core/display.c @@ -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) &&