summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDanny Baumann <dannybaumann@web.de>2009-01-28 08:56:41 +0100
committerDanny Baumann <dannybaumann@web.de>2009-02-04 08:47:32 +0100
commit87f0d5ca1389f6e51cd823b2a7be16465cdfb85a (patch)
tree52e448424f7b56db31d97351027afa4dbefaffc7 /src
parentb6c51395d3182ab9b344227a9b8bc179c9f5a0e0 (diff)
Remove command binding support from core.
Diffstat (limited to 'src')
-rw-r--r--src/display.c61
1 files changed, 0 insertions, 61 deletions
diff --git a/src/display.c b/src/display.c
index 176f769f..b19182fb 100644
--- a/src/display.c
+++ b/src/display.c
@@ -400,43 +400,6 @@ lowerInitiate (CompDisplay *d,
}
static Bool
-runCommandDispatch (CompDisplay *d,
- CompAction *action,
- CompActionState state,
- CompOption *option,
- int nOption)
-{
- CompScreen *s;
- Window xid;
-
- xid = getIntOptionNamed (option, nOption, "root", 0);
-
- s = findScreenAtDisplay (d, xid);
- if (s)
- {
- int index = -1;
- int i = COMP_DISPLAY_OPTION_RUN_COMMAND0_KEY;
-
- while (i <= COMP_DISPLAY_OPTION_RUN_COMMAND11_KEY)
- {
- if (action == &d->opt[i].value.action)
- {
- index = i - COMP_DISPLAY_OPTION_RUN_COMMAND0_KEY +
- COMP_DISPLAY_OPTION_COMMAND0;
- break;
- }
-
- i++;
- }
-
- if (index > 0)
- runCommand (s, d->opt[index].value.s);
- }
-
- return TRUE;
-}
-
-static Bool
runCommandScreenshot (CompDisplay *d,
CompAction *action,
CompActionState state,
@@ -623,30 +586,6 @@ const CompMetadataOptionInfo coreDisplayOptionInfo[COMP_DISPLAY_OPTION_NUM] = {
{ "close_window_button", "button", 0, closeWin, 0 },
{ "main_menu_key", "key", 0, mainMenu, 0 },
{ "run_key", "key", 0, runDialog, 0 },
- { "command0", "string", 0, 0, 0 },
- { "command1", "string", 0, 0, 0 },
- { "command2", "string", 0, 0, 0 },
- { "command3", "string", 0, 0, 0 },
- { "command4", "string", 0, 0, 0 },
- { "command5", "string", 0, 0, 0 },
- { "command6", "string", 0, 0, 0 },
- { "command7", "string", 0, 0, 0 },
- { "command8", "string", 0, 0, 0 },
- { "command9", "string", 0, 0, 0 },
- { "command10", "string", 0, 0, 0 },
- { "command11", "string", 0, 0, 0 },
- { "run_command0_key", "key", 0, runCommandDispatch, 0 },
- { "run_command1_key", "key", 0, runCommandDispatch, 0 },
- { "run_command2_key", "key", 0, runCommandDispatch, 0 },
- { "run_command3_key", "key", 0, runCommandDispatch, 0 },
- { "run_command4_key", "key", 0, runCommandDispatch, 0 },
- { "run_command5_key", "key", 0, runCommandDispatch, 0 },
- { "run_command6_key", "key", 0, runCommandDispatch, 0 },
- { "run_command7_key", "key", 0, runCommandDispatch, 0 },
- { "run_command8_key", "key", 0, runCommandDispatch, 0 },
- { "run_command9_key", "key", 0, runCommandDispatch, 0 },
- { "run_command10_key", "key", 0, runCommandDispatch, 0 },
- { "run_command11_key", "key", 0, runCommandDispatch, 0 },
{ "slow_animations_key", "key", 0, toggleSlowAnimations, 0 },
{ "raise_window_key", "key", 0, raiseInitiate, 0 },
{ "raise_window_button", "button", 0, raiseInitiate, 0 },