Merge lp:~3v1n0/unity/autohide-intellihide into lp:unity
Status: | Merged |
---|---|
Merged at revision: | 834 |
Proposed branch: | lp:~3v1n0/unity/autohide-intellihide |
Merge into: | lp:unity |
Diff against target: |
316 lines (+94/-43) 4 files modified
src/Launcher.cpp (+54/-31) src/Launcher.h (+13/-3) src/unityshell.cpp (+5/-5) unityshell.xml.in (+22/-4) |
To merge this branch: | bzr merge lp:~3v1n0/unity/autohide-intellihide |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Jason Smith (community) | Approve | ||
Review via email: mp+49010@code.launchpad.net |
Description of the change
This branch includes the changes to allow to set different types of Hiding for the Unity Launcher bar. I've changed the old "autohide" option to "hide_mode", so now you can set these kinds of hide modes:
- Never: never hide the launcher bar
- Always: always hide the launcher bar
- Automatically: hide the bar only if no window currently
opened is over the launcher bar (like the "old" autohide)
- When Needed: hide the bar only when the focussed window
is over the launcher bar (also known as "intelli-hide").
For the "When Needed" feature, I also had to include the support for the "focussed" window in PluginAdapter (it tracks the latest focussed window on every change).
You can see an example of how it works here: http://
I've removed the PluginAdapter focussed window implementation (this was the code: http:// paste.ubuntu. com/564958/), since Compiz already gives us that information via the activeWindow function.
Let me know if should re-include the PluginAdapter window_focussed management (maybe it could be useful for other implementations, here's the patch: http:// paste.ubuntu. com/564961/)