Merge lp:~azzar1/unity/fix-1024113 into lp:unity

Proposed by Andrea Azzarone
Status: Superseded
Proposed branch: lp:~azzar1/unity/fix-1024113
Merge into: lp:unity
Diff against target: 67 lines (+13/-18)
3 files modified
launcher/Launcher.cpp (+0/-17)
launcher/Launcher.h (+0/-1)
manual-tests/Launcher.txt (+13/-0)
To merge this branch: bzr merge lp:~azzar1/unity/fix-1024113
Reviewer Review Type Date Requested Status
jenkins (community) continuous-integration Needs Fixing
Unity Team Pending
Review via email: mp+114753@code.launchpad.net

This proposal has been superseded by a proposal from 2012-07-19.

Commit message

Remove Strut Hack in Launcher.cpp.

Description of the change

== Problem ==
Screen flickers when changing launcher icon size.

== Fix ==
Remove "strut hack". I can't see any regressions without it.

== Test ==
Manual test.

To post a comment you must log in.
Revision history for this message
jenkins (martin-mrazik+qa) wrote :
review: Approve (continuous-integration)
Revision history for this message
jenkins (martin-mrazik+qa) wrote :
review: Needs Fixing (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'launcher/Launcher.cpp'
2--- launcher/Launcher.cpp 2012-07-16 17:08:29 +0000
3+++ launcher/Launcher.cpp 2012-07-19 10:38:20 +0000
4@@ -1430,17 +1430,6 @@
5
6 /* End Launcher Show/Hide logic */
7
8-// Hacks around compiz failing to see the struts because the window was just mapped.
9-bool Launcher::StrutHack()
10-{
11- _parent->InputWindowEnableStruts(false);
12-
13- if (options()->hide_mode == LAUNCHER_HIDE_NEVER)
14- _parent->InputWindowEnableStruts(true);
15-
16- return false;
17-}
18-
19 void Launcher::OnOptionsChanged(Options::Ptr options)
20 {
21 UpdateOptions(options);
22@@ -1482,12 +1471,6 @@
23 else
24 {
25 _parent->EnableInputWindow(true, launcher::window_title, false, false);
26-
27- if (!sources_.GetSource(STRUT_HACK_TIMEOUT))
28- {
29- sources_.AddTimeout(1000, sigc::mem_fun(this, &Launcher::StrutHack), STRUT_HACK_TIMEOUT);
30- }
31-
32 _parent->InputWindowEnableStruts(true);
33 }
34
35
36=== modified file 'launcher/Launcher.h'
37--- launcher/Launcher.h 2012-07-16 17:08:29 +0000
38+++ launcher/Launcher.h 2012-07-19 10:38:20 +0000
39@@ -193,7 +193,6 @@
40
41 void OnSelectionChanged(AbstractLauncherIcon::Ptr selection);
42
43- bool StrutHack();
44 bool StartIconDragTimeout();
45 bool OnScrollTimeout();
46 bool OnUpdateDragManagerTimeout();
47
48=== modified file 'manual-tests/Launcher.txt'
49--- manual-tests/Launcher.txt 2012-07-11 09:39:55 +0000
50+++ manual-tests/Launcher.txt 2012-07-19 10:38:20 +0000
51@@ -635,3 +635,16 @@
52
53 Expected Results:
54 * The launcher should autoscroll so you can reach the trash icon.
55+
56+
57+No flickering when resizing the launcher
58+----------------------------------------
59+Actions:
60+ * Open gedit.
61+ * Maximize it. Make sure it remains maximized during the test.
62+ * Open Appearance panel in System Settings.
63+ * Change Launcher Icon Size.
64+
65+Expected Results:
66+ * The gedit window must not flicker behind the launcher.
67+