Merge lp:~azzar1/unity/810315 into lp:unity

Proposed by Andrea Azzarone
Status: Merged
Approved by: Gord Allott
Approved revision: no longer in the source branch.
Merged at revision: 1332
Proposed branch: lp:~azzar1/unity/810315
Merge into: lp:unity
Diff against target: 18 lines (+8/-0)
1 file modified
plugins/unityshell/src/Launcher.cpp (+8/-0)
To merge this branch: bzr merge lp:~azzar1/unity/810315
Reviewer Review Type Date Requested Status
Gord Allott (community) Approve
Review via email: mp+67928@code.launchpad.net

Description of the change

Tries to resolve bug #810315. Since scale plugin takes into account the workarea, and the workarea take into account the struts,it just makes Launcher a struts until spread is active.

See bug report #810315 to reproduce/test the bug/bug-fix.

To post a comment you must log in.
Revision history for this message
Gord Allott (gordallott) wrote :

rejecting as the bug is invalid, sorry =\

review: Disapprove
Revision history for this message
Gord Allott (gordallott) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'plugins/unityshell/src/Launcher.cpp'
2--- plugins/unityshell/src/Launcher.cpp 2011-07-10 09:53:43 +0000
3+++ plugins/unityshell/src/Launcher.cpp 2011-07-14 08:45:16 +0000
4@@ -2037,6 +2037,14 @@
5 {
6 _hide_machine->SetQuirk (LauncherHideMachine::EXPO_ACTIVE, PluginAdapter::Default ()->IsExpoActive ());
7 _hide_machine->SetQuirk (LauncherHideMachine::SCALE_ACTIVE, PluginAdapter::Default ()->IsScaleActive ());
8+
9+ if (_hidemode == LAUNCHER_HIDE_NEVER)
10+ return;
11+
12+ if (PluginAdapter::Default ()->IsScaleActive ())
13+ _parent->InputWindowEnableStruts (true);
14+ else
15+ _parent->InputWindowEnableStruts (false);
16 }
17
18 Launcher::LauncherHideMode Launcher::GetHideMode ()