Dragging an applet twice breaks melange

Bug #270814 reported by Peter Ward
2
Affects Status Importance Assigned to Milestone
Universal Applets
Fix Committed
High
Natan Yellin

Bug Description

Steps to reproduce bug:
1. Start screenlets-daemon or melange.
2. Start an applet.
3. Drag the applet somewhere.
4. Without unfocusing the applet's window, drag it again.
5. The applet does not drag properly, and no other item on screen can be used until you right-click to cancel the focus.

I've got no idea about how the melange server works, and my attempts to find the bug were unfruitful, so I'll leave it to someone else to fix.

Natan Yellin (aantny)
Changed in universal-applets:
assignee: nobody → aantny
importance: Undecided → High
status: New → Confirmed
Revision history for this message
Natan Yellin (aantny) wrote :

This should be fixed in revision 507. Can you confirm that?

Revision history for this message
Peter Ward (flowblok) wrote :

I now can drag once, click off (this now selects the right application, not the applet window), and then drag again.
However, I can't drag an applet without first unfocusing the applet window.
Steps:
1. Open screenlets-daemon / melange.
2. Create an applet (I used SidebarUA and Slideshow).
3. Drag the applet somewhere.
4. After finishing that drag, drag it again to a new location.

Revision history for this message
Peter Ward (flowblok) wrote :

Attached is what I get from running "melange -l 5 -o STDOUT > melangelog".

I loaded melange first (no other instance of screenlet-related stuff was open), then used screenlets-manager to start an instance of the Ruler screenlet.

The first drag worked fine, however, every drag after that failed.
The last drag was done by clicking down, *then* moving the mouse (as annotated).

I would suspect that the bug is in the focussing of the applet or the mouse pointer grabbing. (But I don't know gtk/gdk/melange well enough to work it out!)

Revision history for this message
ASDFASDF (user-487-deactivatedaccount) wrote :

Strange, I can't reproduce this exact thing (tried with Clock, Slideshow and Ruler), but I have another problem with dragging that could be related.
For me dragging works until I focus another window (e.g screenlets-manager). If I then try to drag a screenlet (directly, before focusing it first) sometimes it will work and sometimes (approx. 1 in 10 times) it won't. Screenlets manager looses focus which would indicate that melange window picked it up, but the screenlet stays in place.

Revision history for this message
Peter Ward (flowblok) wrote :

Something I noticed today:
My dragging also doesn't work when I wait for the buttons (menu/close) to fully appear, then try dragging.

Revision history for this message
Ketil Wendelbo Aanensen (ketilwaa-deactivatedaccount) wrote :

I tried this out, but cannot reproduce this bug.
I this still an issue?

Revision history for this message
Natan Yellin (aantny) wrote :

Yes, there's still some weirdness. I'm marking this as crucial for 0.1.

Changed in universal-applets:
milestone: none → 0.1-first-release
Revision history for this message
Peter Ward (flowblok) wrote :

I've fixed this bug for me in bzr revision 609 - does anyone still get weirdness using this revision?

Revision history for this message
ASDFASDF (user-487-deactivatedaccount) wrote :

I am happy to report that I no longer experience this problem.

Revision history for this message
Natan Yellin (aantny) wrote :

The physics engine seems to be broken, but it shouldn't take to much effort to fix it.

Revision history for this message
Peter Ward (flowblok) wrote :

Since everyone who had this problem has been fixed, I'm marking this as fixed.
Sorry about the physics engine, Natan - I thought it would be better to fix a high-importance issue properly, and worry about the physics engine later. You'll just have to find out where to put the bits of code for starting and finishing 'moves', and possibly correct the setting of 'self.dragged' and 'self.mouse_down'.

Changed in universal-applets:
status: Confirmed → Fix Committed
Revision history for this message
Natan Yellin (aantny) wrote :

No problem.

I agree with you about the priorities, and I don't mind handling this myself some time this week.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.