Merge lp://qastaging/~azzar1/unity/other-dnd-fixes into lp://qastaging/unity

Proposed by Andrea Azzarone
Status: Merged
Approved by: Jason Smith
Approved revision: no longer in the source branch.
Merged at revision: 1510
Proposed branch: lp://qastaging/~azzar1/unity/other-dnd-fixes
Merge into: lp://qastaging/unity
Diff against target: 255 lines (+74/-22)
6 files modified
plugins/unityshell/src/DNDCollectionWindow.cpp (+40/-7)
plugins/unityshell/src/DNDCollectionWindow.h (+10/-2)
plugins/unityshell/src/Launcher.cpp (+19/-12)
plugins/unityshell/src/Launcher.h (+1/-0)
plugins/unityshell/src/LauncherModel.cpp (+3/-0)
plugins/unityshell/src/PluginAdapter.h (+1/-1)
To merge this branch: bzr merge lp://qastaging/~azzar1/unity/other-dnd-fixes
Reviewer Review Type Date Requested Status
Jason Smith (community) Approve
Review via email: mp+73167@code.qastaging.launchpad.net

Commit message

This branch tries to solve some dnd bugs.

1) First it try to remove the extra mouse movement that sometimes is required by DNDCollectionWindow using another timeout of 50ms and the XWarpPointer function. To avoid the extra movement also when we are in "Dash View" we need to restack the window every time and not only inside the constructor.

2) Makes it possible to dnd a USB key even if it is the only device icon in launcher.

3) Makes it possible to add more .desktop file into the launcher at once (use /usr/share/applications to test it)

To post a comment you must log in.
Revision history for this message
Jason Smith (jassmith) wrote :

We can't leak CompScreen into more classes. This makes testing VERY difficult down the road. Try to minimize your actual dependencies in the class. Looks like what you really need is a Display* from Xlib.

review: Needs Fixing
Revision history for this message
Andrea Azzarone (azzar1) wrote :

Done... I've also removed timeout to makke way for something more correct IMHO.

Revision history for this message
Jason Smith (jassmith) wrote :

You made the default window manager implementation return null but did not do a null check in your code

review: Needs Fixing
Revision history for this message
Andrea Azzarone (azzar1) wrote :

Done.

Revision history for this message
Andrea Azzarone (azzar1) wrote :

It should improve dnd experience but it don't solve definitively bug #835362

Revision history for this message
Andrea Azzarone (azzar1) wrote :

Done

Revision history for this message
Jason Smith (jassmith) wrote :

+1

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.