Merge lp:~vanvugt/mir/render-focus into lp:mir
Status: | Work in progress |
---|---|
Proposed branch: | lp:~vanvugt/mir/render-focus |
Merge into: | lp:mir |
Prerequisite: | lp:~vanvugt/mir/renderable-id |
Diff against target: |
114 lines (+34/-8) 2 files modified
examples/demo-shell/demo_renderer.cpp (+29/-6) examples/demo-shell/demo_renderer.h (+5/-2) |
To merge this branch: | bzr merge lp:~vanvugt/mir/render-focus |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Mir development team | Pending | ||
Review via email: mp+214169@code.launchpad.net |
Commit message
demo-shell: Visibly highlight the focussed surface
Description of the change
There's a TODO around how to accurately get the focus information. This started out as an activity to enable and enrich Renderable with that kind of state, but now I realize focus is not a piece of state stored in any Renderable/Surface. So it's turned into more of a hack than expected. But it's one worth building upon...
Unmerged revisions
- 1534. By Daniel van Vugt
-
Tweak focussed/unfocussed colour differences to be less dramatic
- 1533. By Daniel van Vugt
-
Merge latest development-branch, resolve conflicts and port to the new
interfaces. - 1532. By Daniel van Vugt
-
Make use of Renderable::ID
- 1531. By Daniel van Vugt
-
Merge branch renderable-id
- 1530. By Daniel van Vugt
-
Merge latest development-branch and fix a conflict
- 1529. By Daniel van Vugt
-
Merge branch "renderable-id"
- 1528. By Daniel van Vugt
-
And vary the titlebar itself based on focus
- 1527. By Daniel van Vugt
-
Initial prototype of varying shadow size based on focus
On second thoughts, leave this work in progress. A nicer solution would be to simply augment each surface with an "int stacking_depth" which the render could use for other things too.