Merge lp:~brandontschaefer/unity/lp.1101310-window-buttons-fix into lp:unity
Status: | Merged |
---|---|
Approved by: | Thomi Richards |
Approved revision: | no longer in the source branch. |
Merged at revision: | 3081 |
Proposed branch: | lp:~brandontschaefer/unity/lp.1101310-window-buttons-fix |
Merge into: | lp:unity |
Diff against target: |
500 lines (+202/-24) 16 files modified
dash/CMakeLists.txt (+1/-1) dash/DashView.cpp (+17/-9) dash/DashView.h (+12/-7) hud/CMakeLists.txt (+1/-1) hud/HudView.cpp (+6/-0) hud/HudView.h (+3/-0) panel/CMakeLists.txt (+0/-1) panel/PanelMenuView.cpp (+2/-1) panel/PanelMenuView.h (+1/-1) panel/PanelView.cpp (+2/-1) tests/autopilot/unity/tests/test_panel.py (+16/-0) tests/test_hud_view.cpp (+2/-0) tests/test_window_buttons.cpp (+2/-2) unity-shared/CMakeLists.txt (+2/-0) unity-shared/OverlayWindowButtons.cpp (+81/-0) unity-shared/OverlayWindowButtons.h (+54/-0) |
To merge this branch: | bzr merge lp:~brandontschaefer/unity/lp.1101310-window-buttons-fix |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Thomi Richards (community) | quality | Approve | |
Andrea Azzarone (community) | Approve | ||
PS Jenkins bot | continuous-integration | Pending | |
Review via email: mp+145284@code.launchpad.net |
Commit message
Created a class OverlayWindowBu
to handle mouse events for the window buttons.
TODO: We need to refactor the PanelMenuView to extract window button logic
(dealing with overlays).
Description of the change
=== Problem ===
When the launcher icons were resized the dash view would take up that extra space. The problem with this is the panel height is part of the dash view. So part of the window buttons are under the dash view which means no mouse events get to them. Meaning they no longer work :).
=== Fix ===
So to start, we can't fix this by telling the dash view to ignore the panel because the preview needs to draw over them. This means the dash view must be over the panel.
So the new fix, is to have the DashView/HudView hold the OverlayWindowBu
=== Test ===
There is an AP test
346 +const int MAIN_LEFT_PADDING = 4;
347 +const int MENUBAR_PADDING = 4;
Put them in an unnamed namespace (or just declare them static, but static is so C :)
387 +nux::Area* OverlayWindowBu ttons:: FindAreaUnderMo use(nux: :Point const& mouse_position,
388 + nux::NuxEventType event_type)
Please fix the indentation here.