Merge lp:~brandontschaefer/unity/fix-1066442 into lp:unity
Proposed by
Brandon Schaefer
Status: | Rejected |
---|---|
Rejected by: | Brandon Schaefer |
Proposed branch: | lp:~brandontschaefer/unity/fix-1066442 |
Merge into: | lp:unity |
Diff against target: |
82 lines (+21/-2) 3 files modified
hud/HudView.cpp (+10/-2) hud/HudView.h (+1/-0) tests/autopilot/unity/tests/test_hud.py (+10/-0) |
To merge this branch: | bzr merge lp:~brandontschaefer/unity/fix-1066442 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Nick Dedekind (community) | Needs Fixing | ||
Review via email: mp+130453@code.launchpad.net |
Commit message
Mouse no longer steals HUD button focus when typing.
Description of the change
=== Problem ===
The mouse would steal focus of the buttons in the hud while typing. If the mouse was over one of the buttons.
=== Fix ===
The mouse can only steal button focus now until after both last_height == current height ie. it is done animating.
=== Test ===
AP test
To post a comment you must log in.
Unmerged revisions
- 2864. By Brandon Schaefer
-
* Move setting input focus to false to the HudView
- 2863. By Brandon Schaefer
-
* The mouse no longer steals button focus in the hud while typing.
37 + if (restore_ button_ input_ && current_height_ == last_known_height_)
You shouldn't need the current_height_ == last_known_height_ as this code should only be called once every time the query changes.
There seems to be something broken in the relyout where the view keeps doing ProcessGrowShrink.
This seems to be because a layout update causes the Min/Max to be set during a call to Relayout(), but there is no checks in those methods to check for an actual change, so it forces a parent relayout.
I think the animation needs some refactoring to get this working cleanly.