Merge lp:~ruben-verweij/unity/fix-677594-workspaces into lp:unity
| Status: | Superseded |
|---|---|
| Proposed branch: | lp:~ruben-verweij/unity/fix-677594-workspaces |
| Merge into: | lp:unity |
| Diff against target: |
171 lines (+77/-21) (has conflicts) 4 files modified
src/LauncherController.cpp (+38/-13) src/LauncherController.h (+13/-8) src/unity.cpp (+21/-0) src/unity.h (+5/-0) Text conflict in src/unity.cpp |
| To merge this branch: | bzr merge lp:~ruben-verweij/unity/fix-677594-workspaces |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Neil J. Patel (community) | 2010-12-08 | Needs Fixing on 2010-12-09 | |
|
Review via email:
|
|||
This proposal has been superseded by a proposal from 2010-12-09.
Description of the Change
Fix launchpad bug 677594 so the Workspace switcher is not shown when there is only one workspace. This uses GConf to check if the number of workspaces Compiz uses is greater than 1.
| Sam Spilsbury (smspillaz) wrote : | # |
- 681. By Ruben Verweij on 2010-12-09
-
modified:
src/LauncherController. cpp
src/LauncherController. h
- Add a function that displays/hides the workspace launcher when the number
of workspaces changes
src/unity.cpp
src/unity.h
- Add a function that calls the function in the LauncherController if the
number of workspaces has changed - 682. By Ruben Verweij on 2011-02-10
-
Conflicts resolved, remaining changes: modified:
src/LauncherControl ler.cpp
src/LauncherControl ler.h
- Add a function that displays/hides the workspace launcher when the number
of workspaces changes
src/unity.cpp
src/unity.h
- Add a function that calls the function in the LauncherController if the
number of workspaces has changed


Hi,
You don't need to use gconf to do this, you can just ask compiz directly for the number of workspaces with screen->vpSize ().width ();
Also if you want to be notified when this number changes you can implement a
bool :setOptionForPl ugin (const char *plugin, const char *name, CompOption::Value &v) and make sure that UnityScreen inherits ScreenInterface (and that we call ScreenInterface ::setHandler (screen) in the UnityScreen construtor) and then check for plugin == "core" and name == "hsize" and react on that change.
UnityScreen:
See git.compiz. org/compiz/ core/plugins/ cube/src/ cube.cpp: 1622 for some ideas on this.
Remind me that this method is full of suck and I need to change it.