[PATCH] pass mouse wheel events to the wallpaper

Benoit Jacob jacob.benoit.1 at gmail.com
Thu Sep 4 18:05:02 CEST 2008


err, i mean scenePos() not screenPos() of course.

2008/9/4 Benoit Jacob <jacob.benoit.1 at gmail.com>:
> Hi,
>
> The attached patch makes Containment forward mouse wheel events first
> to the wallpaper, if the event screenPos() indicates that the mouse
> cursor was on the wallpaper. I adapted this code from what you were
> already doing with mouseMoveEvent().
>
> If the wallpaper doesn't accept the wheel event, it gets propagated as before.
>
> Please, review this short patch and tell me if I may commit.
>
> Cheers,
> Benoit
>


More information about the Plasma-devel mailing list