[Bug 156004] pager shows two active desktops

Daniel Laidig d.laidig at gmx.de
Sat Jan 19 22:39:13 CET 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=156004         




------- Additional Comments From d.laidig gmx de  2008-01-19 22:39 -------
Created an attachment (id=23145)
 --> (http://bugs.kde.org/attachment.cgi?id=23145&action=view)
Fix for both issues, uses hoverLeaveEvent

Okay, I have a patch that fixes the bug and also adds some temporary debug
messages. The problem is that the applet does not always get
mouseReleaseEvents. The pager relies on getting these events to determine when
a drag is finished.

If you click on a pager in the panel but release the mouse button on the
desktop or on another window, you don't get a mouseReleaseEvent. What I found
strange is that this never happened when the pager was on the desktop.

As a workaround, I've tested different events and it looks like only the
hoverLeaveEvent works reliably. Now I use this event additionally to end drags
which seems to work well. The only drawback is that it could end a drag too
soon when the user accidentally moves the mouse up and leaves the panel.

I'm also not happy with this workaround. That's why I will wait until aseigo is
back who hopefully has some idea why the events don't work reliably before
committing this to trunk and 4.0.


More information about the Panel-devel mailing list