Summary: | plasma applets on desktop not receiving mouse leave events | ||
---|---|---|---|
Product: | [Plasma] plasma4 | Reporter: | Ambroz Bizjak <ambrop7> |
Component: | general | Assignee: | Plasma Bugs List <plasma-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Attachments: |
fix
fix fix |
Description
Ambroz Bizjak
2008-07-27 23:14:28 UTC
Created attachment 26445 [details]
fix
This fixes the problem. The cause was the applet handle, which installed a
sceneEventFilter, but did propagate the leave event (it uses it to disappear).
This makes its sceneEventFilter always return false, propagating all events to
the applet.
Created attachment 26446 [details]
fix
This one also removes a minor inconsistency that was caused by relaying the
event to the contained applet. That is, sometimes the event is first delivered
to the contained widget instead of the handle widget, which caused it to appear
or disappear immediately, while it disappears or appears after a small timeout
if the leave event is delivered to the handle widget. This removes calling of
startFading from within the contained widget's event handler, leaving it up to
the applet.
Sorry, typo in last sentence; it leaves fading in and out to the applet handle, as the applet handle anyway intercepts all hover events, and there is no need to do any fading from within the contained widget. Created attachment 26447 [details]
fix
oops, accidentally included a fix for the battery bug...
SVN commit 838889 by aseigo: hand hover events more responsibly in containment and applethandle; another patch by ambro (abro: one more solid patch like this and i'll be hitting you up to get an svn account of your own ;) BUG:167551 M +0 -1 applethandle.cpp M +1 -11 containment.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=838889 SVN commit 838890 by aseigo: backport fix for 167551 to 4.0.x CCBUG:167551 M +0 -1 applethandle.cpp M +1 -11 containment.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=838890 |