Merge lp:~mial/ubuntu/oneiric/unity/bug-791810 into lp:unity

Proposed by Alberto Gatto
Status: Rejected
Rejected by: Didier Roche-Tolomelli
Proposed branch: lp:~mial/ubuntu/oneiric/unity/bug-791810
Merge into: lp:unity
Diff against target: 43 lines (+23/-0) (has conflicts)
1 file modified
plugins/unityshell/src/BamfLauncherIcon.cpp (+23/-0)
Text conflict in plugins/unityshell/src/BamfLauncherIcon.cpp
To merge this branch: bzr merge lp:~mial/ubuntu/oneiric/unity/bug-791810
Reviewer Review Type Date Requested Status
Ubuntu branches Pending
Review via email: mp+84593@code.launchpad.net

This proposal supersedes a proposal from 2011-10-25.

Description of the change

This branch fixes Bug-791810. Compiz expose effect takes away the focus on a quicklist, i still don't know how and why it does that but i've placed a workaround in BamfLauncherIcon::OnViewPortSwitchEnded(). This is my first contribution so it may be lacking in all sort of ways, please feel free to address me if needed. Thank you so much for your work and excuse me for my poor english.

To post a comment you must log in.
Revision history for this message
Sebastien Bacher (seb128) wrote : Posted in a previous version of this proposal

Thank you for your work, it seems you based the merge request on the wrong vcs though seeing the diff, did you work on the upstream code or the unity packaging?

Revision history for this message
Alberto Gatto (mial) wrote : Posted in a previous version of this proposal

First of all thank you for replying, i've worked on the code branched from
lp:unity i don't know what's the difference between upstream code and the
unity packaging; if it helps i've modified the code of unity as it was
suggested to me by Andrea Azzarone (andyrock).
I can redo the work on a different branch... just tell me. Thank you again
for your time.

AG

2011/11/10 Sebastien Bacher <email address hidden>

> Thank you for your work, it seems you based the merge request on the wrong
> vcs though seeing the diff, did you work on the upstream code or the unity
> packaging?
> --
>
> https://code.launchpad.net/~mial/ubuntu/oneiric/unity/bug-791 8810/+merge/80364<https://code.launchpad.net/~mial/ubuntu/oneiric/unity/bug-791810/+merge/80364>
> You are the owner of lp:~mial/ubuntu/oneiric/unity/bug-791810.
>

Revision history for this message
Sebastien Bacher (seb128) wrote : Posted in a previous version of this proposal

Sorry for the delay between two replies, do you think you could update the merge request to target the correct vcs? you submitted against the packaging one there

Revision history for this message
Alberto Gatto (mial) wrote : Posted in a previous version of this proposal

No problem at all... just point me to the right vcs if i'm not asking too
much, it would be of great help. I'll do the rest right now. Thanks again!

2011/11/24 Sebastien Bacher <email address hidden>

> Sorry for the delay between two replies, do you think you could update the
> merge request to target the correct vcs? you submitted against the
> packaging one there
> --
>
> https://code.launchpad.net/~mial/ubuntu/oneiric/unity/bug-791810/+merge/80364
> You are the owner of lp:~mial/ubuntu/oneiric/unity/bug-791810.
>

Revision history for this message
Chris Halse Rogers (raof) wrote : Posted in a previous version of this proposal

Hi. The target for this merge request would be lp:unity - the branch that you based your work on. It's not possible (as far as I'm aware) to change the target of an existing merge request, so I'll ask for this one to be closed.

Please resubmit this merge request against lp:unity. Thanks for your work, and sorry for the delay in replying.

Revision history for this message
Didier Roche-Tolomelli (didrocks) wrote :

Hey, it seems you have text conflict in plugins/unityshell/src/BamfLauncherIcon.cp and generally, you should redo bzr branch lp:unity and include your fix there as there is no common history between the two branches.

Then, redo a merge proposal against lp:unity.

Thanks a lot for your work, and sorry for the confusion there :)

Unmerged revisions

1726. By Alberto Gatto

Removed a g_warning() that was only for testing purpose

1725. By Alberto Gatto

#Bug 791810

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'plugins/unityshell/src/BamfLauncherIcon.cpp'
2--- plugins/unityshell/src/BamfLauncherIcon.cpp 2011-10-25 17:00:12 +0000
3+++ plugins/unityshell/src/BamfLauncherIcon.cpp 2011-12-06 10:36:24 +0000
4@@ -33,10 +33,20 @@
5
6 #include <UnityCore/GLibWrapper.h>
7
8+<<<<<<< TREE
9 namespace unity
10 {
11 namespace launcher
12 {
13+=======
14+/*
15+* Needed to fix Bug-791810
16+*/
17+#include "QuicklistManager.h"
18+#include "QuicklistView.h"
19+
20+using unity::FavoriteStore;
21+>>>>>>> MERGE-SOURCE
22
23 struct _ShortcutData
24 {
25@@ -395,6 +405,19 @@
26
27 void BamfLauncherIcon::OnViewPortSwitchEnded()
28 {
29+ /*
30+ * Workaround to reassign focus to the active quicklist after
31+ * it got stolen during compiz expose.
32+ * This fix solves Bug-791810.
33+ */
34+ QuicklistView* quicklist = QuicklistManager::Default()->Current();
35+ if (quicklist != 0 && quicklist->IsVisible())
36+ {
37+ quicklist->GrabPointer();
38+ quicklist->GrabKeyboard();
39+ return;
40+ }
41+
42 OnWindowMoved(0);
43 }
44