[mutter] Pass through all scroll events to compositor
- From: Owen Taylor <otaylor src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [mutter] Pass through all scroll events to compositor
- Date: Fri, 31 Jul 2009 14:37:51 +0000 (UTC)
commit 239b39cf5288d9be27bca9e94d060ecde1ca1ca3
Author: Owen W. Taylor <otaylor fishsoup net>
Date: Tue Jul 28 19:10:09 2009 -0400
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 files changed, 2 insertions(+), 8 deletions(-)
---
diff --git a/src/core/display.c b/src/core/display.c
index 3d97aa2..fd3b2ee 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) &&
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]