diff options
| author | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2015-10-27 18:33:31 +0100 |
|---|---|---|
| committer | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2015-10-27 18:33:31 +0100 |
| commit | 68f74570088266f4c9b230f87e34ad2e64564259 (patch) | |
| tree | 0cdcc92b62025c49c01559a049cec6f9eec8afb8 /shortcuts | |
| parent | 3ec9ed31729eea4e9fb76fab937553a6c6902f09 (diff) | |
UnityScreen: add ability to spread app windows depending on workspace
(bzr r4027.2.4)
Diffstat (limited to 'shortcuts')
| -rw-r--r-- | shortcuts/CompizShortcutModeller.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/shortcuts/CompizShortcutModeller.cpp b/shortcuts/CompizShortcutModeller.cpp index 2ee1e14c7..f415d39a2 100644 --- a/shortcuts/CompizShortcutModeller.cpp +++ b/shortcuts/CompizShortcutModeller.cpp @@ -69,6 +69,7 @@ namespace const std::string UNITYSHELL_OPTION_SHOW_HUD = "show_hud"; const std::string UNITYSHELL_OPTION_PANEL_FIRST_MENU = "panel_first_menu"; const std::string UNITYSHELL_OPTION_SPREAD_APP_WINDOWS = "spread_app_windows"; + const std::string UNITYSHELL_OPTION_SPREAD_APP_WINDOWS_ANYWHERE = "spread_app_windows_anywhere"; const std::string UNITYSHELL_OPTION_ALT_TAB_FORWARD = "alt_tab_forward"; const std::string UNITYSHELL_OPTION_ALT_TAB_FORWARD_ALL = "alt_tab_forward_all"; const std::string UNITYSHELL_OPTION_ALT_TAB_NEXT_WINDOW = "alt_tab_next_window"; @@ -324,6 +325,15 @@ void CompizModeller::AddWindowsHints(std::list<shortcut::AbstractHint::Ptr> &hin UNITYSHELL_PLUGIN_NAME, UNITYSHELL_OPTION_SPREAD_APP_WINDOWS)); + if (ws_enabled) + { + hints.push_back(std::make_shared<shortcut::Hint>(windows, "", "", + _("Spreads all windows of the focused application in all the workspaces."), + shortcut::OptionType::COMPIZ_KEY, + UNITYSHELL_PLUGIN_NAME, + UNITYSHELL_OPTION_SPREAD_APP_WINDOWS_ANYWHERE)); + } + hints.push_back(std::make_shared<shortcut::Hint>(windows, "", "", _("Minimises all windows."), shortcut::OptionType::COMPIZ_KEY, |
