[Bug 166149] Plasma applet position reverts after move
Mario Oschwald
mario.oschwald at hpi.uni-potsdam.de
Thu Jul 10 03:11:28 CEST 2008
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=166149
------- Additional Comments From mario.oschwald hpi uni-potsdam de 2008-07-10 03:11 -------
OK, I think I found the reason for the 1st case of this bug, even though I don't know how to fix this properly (The entanglement between applet handles, and applets in regard to moving is imo pretty nasty)
If you move an Applet via the Applet::MouseMoveEvent Method it changes (if a handle is present) the position of the handle. Since at that time it is child of
the handle it moves along with the handle as it's coordinate system is relative to the parents - this does not change the applets local coordinates. If you then (before the handle is destroyed) use the the handle to move the applet the bug occurs in that the handle stores the current position of the applet (which hasn't changed during the previous move) then adjusts its own position to that position (+delta).
In other words the applet thinks "I'll stick with the handle" and the handle thinks, "I'll stick with the applet".
More information about the Panel-devel
mailing list