LOGIN / SIGN UP

#29 drag'n'drop requires the recieving window to be moved before working

Reported by: Jyri Jokinen (shared) Assigned to: Claes Nästén (pekdon)
Phase: Component: windowmanager
Type: bug Status: fixed
Priority: 3: Medium
Watchers:

Attachments

Description

Open two ROX filer windows (or anything else that supports DnD). Rox is an easy testbed.

Try to drag a file from one of the windows to the other window - no go.

Move the window the file is being dragged to, then try dragging the file again - notice it working.

The exact way this behaves is hard to explain, since sometimes one of the windows accepts the drag while dragging the other way does not work. In any case, playing around with the receiving windows placement and size fixes the problem and the drag is accepted. Windows are being initially placed by the "Smart" placement model in my tests, but I'm not entirely sure if that is the only case this happens in.

   [pekwm: version GIT Built on Sun Jul  6 18:53:04 EEST 2008]
   PlaceNew = "True"
   FocusNew = "False" /* default was true */
   Placement {
    Model = "CenteredOnParent Smart MouseNotUnder"
    Smart {
     Row = "True"
     TopToBottom = "True"
     LeftToRight = "True"
     OffsetX = "0"
     OffsetY = "0"
    }
   }

2008-08-01

03:31:55 changed from new to fixed
03:31:42

Recent changes to git fix these DnD problems, setting this task fixed.

2008-07-30

15:23:30

Patch 2 fixes it, but the shaded toggling doesn't seem to be necessary. move(_gm.x, _gm.y); does the trick by itself.

13:49:21 attached 0002-2nd-experimental-dnd.patch
13:49:03 13:28:30

That's a pity but thanks for testing it. Be so kind and also try the new one.

2008-07-29

23:02:27

Patch does not fix it here.

22:44:27 attached 0001-experimental-fix-for-dnd.patch
17:20:14

I hope the file is now uploaded. ;)

17:02:28

The attached patch rectifies this problem, at least as far as I can reproduce it on my test system. Please try it and tell me your results. Thanks in advance.