Version: (using Devel) Installed from: Compiled sources OS: Linux Any plasma applet that is placed on the desktop (not in a panel) will not receive mouse leave events that consider the applet as a whole. One example is the battery applet, where a charge percentage appears when hovering over it, but does not disappear when the mouse leaves it. Another is the Digital Clock applet, where a popup with the time and date appears, but does not disappear. The applets mentioned work fine if used inside a panel.
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