GNOME Bugzilla – Bug 580760
Allow compositor to see ButtonPress events for buttons 4 and 5 (scroll wheel)
Last modified: 2009-05-05 08:53:13 UTC
At present the scroll wheel events are filtered out; this might be of interest to compositor plugins.
Created attachment 133570 [details] [review] Patch to pass ButtonPress 4 and 5 to compositor.
Conceptually this looks good to me, but it certainly doesn't make the flow of that function any easier to understand. Could you instead remove the early return and check for scroll wheel events where Metacity goes ahead and processes button presses? I'll attach a completely untested patch to show what I mean.
Created attachment 133576 [details] [review] Illustrative patch
Committed as 90c35f8181e5fdc10e70fe7aa17d055ce3aada48.