Merge lp:~slash-m3/unity/fix-bug-728598 into lp:unity

Proposed by Friik
Status: Merged
Merged at revision: 973
Proposed branch: lp:~slash-m3/unity/fix-bug-728598
Merge into: lp:unity
Diff against target: 31 lines (+5/-2)
1 file modified
src/Launcher.cpp (+5/-2)
To merge this branch: bzr merge lp:~slash-m3/unity/fix-bug-728598
Reviewer Review Type Date Requested Status
Jason Smith (community) Approve
Review via email: mp+53881@code.launchpad.net
To post a comment you must log in.
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
1=== modified file 'src/Launcher.cpp'
2--- src/Launcher.cpp 2011-03-17 08:49:55 +0000
3+++ src/Launcher.cpp 2011-03-17 19:19:24 +0000
4@@ -3133,7 +3133,8 @@
5
6 //LauncherModel::iterator it;
7 std::list<Launcher::RenderArg>::iterator it;
8- for(it = args.begin(); it != args.end(); it++)
9+ int i;
10+ for(it = args.begin(), i = 0; it != args.end(); it++, i++)
11 {
12
13 LauncherIcon* launcher_icon = (*it).icon;
14@@ -3183,6 +3184,8 @@
15
16 w = geo.width + 2;
17 h = _icon_size + _space_between_icons;
18+ if (i == _model->Size () - 1)
19+ h += 4;
20 x = (*it).logical_center.x - w/2.0f;
21 y = (*it).logical_center.y - h/2.0f;
22 z = (*it).logical_center.z;
23@@ -3550,7 +3553,7 @@
24
25 SetMousePosition (x - parent->GetGeometry ().x, y - parent->GetGeometry ().y);
26
27- if (_mouse_position.x == 0 && !_drag_edge_touching)
28+ if (_mouse_position.x == 0 && _mouse_position.y <= (_parent->GetGeometry ().height - _icon_size - 2*_space_between_icons) && !_drag_edge_touching)
29 {
30 _drag_edge_touching = true;
31 SetTimeStruct (&_times[TIME_DRAG_EDGE_TOUCH], &_times[TIME_DRAG_EDGE_TOUCH], ANIM_DURATION * 3);