After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 588232 - Push Button 4/5 events to compositor even when no matching MetaWindow exists
Push Button 4/5 events to compositor even when no matching MetaWindow exists
Status: RESOLVED FIXED
Product: mutter
Classification: Core
Component: general
git master
Other Linux
: Normal normal
: ---
Assigned To: mutter-maint
mutter-maint
Depends on:
Blocks:
 
 
Reported: 2009-07-10 10:33 UTC by Tomas Frydrych
Modified: 2009-07-31 14:38 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
The patch as we have it in moblin (1.08 KB, patch)
2009-07-10 10:34 UTC, Tomas Frydrych
none Details | Review
Pass through all scroll events to compositor (1.42 KB, patch)
2009-07-28 23:13 UTC, Owen Taylor
none Details | Review

Description Tomas Frydrych 2009-07-10 10:33:59 UTC
Currently, the compositor will only see button 4/5 events if the event window is managed by Mutter, but if we are getting the event for a non-managed window, it implies that some plugin selected to receive these, so we should not block these.
Comment 1 Tomas Frydrych 2009-07-10 10:34:43 UTC
Created attachment 138179 [details] [review]
The patch as we have it in moblin
Comment 2 Owen Taylor 2009-07-10 19:11:36 UTC
See my suggested better way to do things in bug 580760

Comment 3 Tomas Frydrych 2009-07-13 08:52:28 UTC
I assume you are referring to letting the event fall through to the end of the switch statement ? 
Comment 4 Owen Taylor 2009-07-13 12:37:46 UTC
Yes. I was saying there the early return:

 A) Makes it hard to understand what is going on
 B) Makes it easy to make mistakes where the scroll events get handled differently from other events.

If you look at my untested alternative patch there, it doesn't have the problem you are fixing in this patch.
Comment 5 Owen Taylor 2009-07-28 23:13:46 UTC
Created attachment 139439 [details] [review]
Pass through all scroll events to compositor

I've tested:

 - Scrolling over a title bar doesn't cause any apparent bad effects
 - Scroll events get through to the clutter canvas
Comment 6 Tomas Frydrych 2009-07-31 12:33:09 UTC
Yep, that's lot cleaner, would you commit it please ?
Comment 7 Owen Taylor 2009-07-31 14:38:01 UTC
Pushed.