Merge lp:~townsend/unity/fix-lp1301394-trusty into lp:unity/7.2

Proposed by Christopher Townsend
Status: Work in progress
Proposed branch: lp:~townsend/unity/fix-lp1301394-trusty
Merge into: lp:unity/7.2
Diff against target: 38 lines (+13/-0)
1 file modified
launcher/Launcher.cpp (+13/-0)
To merge this branch: bzr merge lp:~townsend/unity/fix-lp1301394-trusty
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Approve
Stephen M. Webb (community) Approve
Review via email: mp+259289@code.launchpad.net

Commit message

Hide launcher to avoid damaging window when not needed. Also make sure that pressure effect works fine (previous fix has been reverted because of this!).

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Stephen M. Webb (bregma) :
review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)

Unmerged revisions

3821. By Andrea Azzarone

Hide launcher to avoid damaging window when not needed. Also make sure that pressure effect works fine (previous fix has been reverted because of this!).

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'launcher/Launcher.cpp'
--- launcher/Launcher.cpp 2014-12-15 19:06:58 +0000
+++ launcher/Launcher.cpp 2015-05-15 19:54:26 +0000
@@ -1108,6 +1108,9 @@
1108 postreveal_mousemove_delta_x_ = 0;1108 postreveal_mousemove_delta_x_ = 0;
1109 postreveal_mousemove_delta_y_ = 0;1109 postreveal_mousemove_delta_y_ = 0;
11101110
1111 if (!hide_launcher)
1112 parent_->ShowWindow(true);
1113
1111 if (nux::GetWindowThread()->IsEmbeddedWindow())1114 if (nux::GetWindowThread()->IsEmbeddedWindow())
1112 parent_->EnableInputWindow(!hide_launcher, launcher::window_title, false, false);1115 parent_->EnableInputWindow(!hide_launcher, launcher::window_title, false, false);
11131116
@@ -1681,6 +1684,13 @@
1681 RenderArgs(args, bkg_box, &launcher_alpha, geo_absolute);1684 RenderArgs(args, bkg_box, &launcher_alpha, geo_absolute);
1682 bkg_box.width -= RIGHT_LINE_WIDTH.CP(cv_);1685 bkg_box.width -= RIGHT_LINE_WIDTH.CP(cv_);
16831686
1687 if (options()->hide_mode != LAUNCHER_HIDE_NEVER &&
1688 bkg_box.x + bkg_box.width <= 0 &&
1689 hide_machine_.reveal_progress <= 0)
1690 {
1691 parent_->ShowWindow(false);
1692 }
1693
1684 nux::Color clear_colour = nux::Color(0x00000000);1694 nux::Color clear_colour = nux::Color(0x00000000);
16851695
1686 // clear region1696 // clear region
@@ -2270,7 +2280,10 @@
2270 return ui::EdgeBarrierSubscriber::Result::IGNORED;2280 return ui::EdgeBarrierSubscriber::Result::IGNORED;
22712281
2272 if (!owner->IsFirstEvent())2282 if (!owner->IsFirstEvent())
2283 {
2284 parent_->ShowWindow(true);
2273 hide_machine_.AddRevealPressure(event->velocity);2285 hide_machine_.AddRevealPressure(event->velocity);
2286 }
22742287
2275 return ui::EdgeBarrierSubscriber::Result::HANDLED;2288 return ui::EdgeBarrierSubscriber::Result::HANDLED;
2276}2289}

Subscribers

People subscribed via source and target branches

to status/vote changes: