Merge lp:~brandontschaefer/unity/fix-failing-swticher-click-ap-test into lp:unity

Proposed by Brandon Schaefer
Status: Merged
Approved by: Christopher Townsend
Approved revision: no longer in the source branch.
Merged at revision: 3482
Proposed branch: lp:~brandontschaefer/unity/fix-failing-swticher-click-ap-test
Merge into: lp:unity
Diff against target: 26 lines (+2/-3)
1 file modified
plugins/unityshell/src/unityshell.cpp (+2/-3)
To merge this branch: bzr merge lp:~brandontschaefer/unity/fix-failing-swticher-click-ap-test
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Approve
Christopher Townsend Approve
Review via email: mp+182493@code.launchpad.net

Commit message

Fixes:
unity.tests.test_switcher.SwitcherDetailsMouseTests.test_mouse_click_will_activate_detail_icon(show_desktop_icon_true)
unity.tests.test_switcher.SwitcherDetailsMouseTests.test_mouse_click_will_activate_detail_icon(show_desktop_icon_false)

Description of the change

Only handle the event if we really use it...otherwise we skip events we don't actually use.

Fixes:
unity.tests.test_switcher.SwitcherDetailsMouseTests.test_mouse_click_will_activate_detail_icon(show_desktop_icon_true) 20.767 1
unity.tests.test_switcher.SwitcherDetailsMouseTests.test_mouse_click_will_activate_detail_icon(show_desktop_icon_false)

For now.

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Christopher Townsend (townsend) wrote :

LGTM +1

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Christopher Townsend (townsend) wrote :

Seems to be some transient unit test failures for amd64. Re-approving...

Revision history for this message
PS Jenkins bot (ps-jenkins) :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'plugins/unityshell/src/unityshell.cpp'
2--- plugins/unityshell/src/unityshell.cpp 2013-08-12 02:54:48 +0000
3+++ plugins/unityshell/src/unityshell.cpp 2013-08-27 21:44:20 +0000
4@@ -1207,9 +1207,8 @@
5 if (close_button_geo_.IsPointInside(event->xbutton.x_root, event->xbutton.y_root))
6 {
7 window->close(0);
8+ handled = true;
9 }
10-
11- handled = true;
12 }
13
14 if (middle_clicked_)
15@@ -1219,10 +1218,10 @@
16 GetLayoutWindowGeometry().IsPointInside(event->xbutton.x_root, event->xbutton.y_root)))
17 {
18 window->close(0);
19+ handled = true;
20 }
21
22 middle_clicked_ = false;
23- handled = true;
24 }
25 }
26 break;