diff options
author | Mark Tiefenbruck <mark@fluxbox.org> | 2009-08-08 16:14:39 (GMT) |
---|---|---|
committer | Mark Tiefenbruck <mark@fluxbox.org> | 2009-08-08 16:14:39 (GMT) |
commit | 07da360b2be4a96e82de80d25b0506d58ea8124e (patch) | |
tree | f012f7d356f40536ad0eca4f1935d63e6206fe8d /src | |
parent | 9dcbff31b492ca4277471accc95696e0f9a0dd20 (diff) | |
download | fluxbox-07da360b2be4a96e82de80d25b0506d58ea8124e.zip fluxbox-07da360b2be4a96e82de80d25b0506d58ea8124e.tar.bz2 |
more fixes for fluxconf mangling the keys file
Diffstat (limited to 'src')
-rw-r--r-- | src/Keys.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Keys.cc b/src/Keys.cc index 8567c3f..84e5eb8 100644 --- a/src/Keys.cc +++ b/src/Keys.cc | |||
@@ -404,8 +404,15 @@ bool Keys::addBinding(const string &linebuffer) { | |||
404 | type = ButtonPress; | 404 | type = ButtonPress; |
405 | key = atoi(val[argc].substr(5, | 405 | key = atoi(val[argc].substr(5, |
406 | val[argc].length()-5).c_str()); | 406 | val[argc].length()-5).c_str()); |
407 | // fluxconf mangles things like OnWindow Mouse# to Mouse#ow | ||
407 | if (strstr(val[argc].c_str(), "top")) | 408 | if (strstr(val[argc].c_str(), "top")) |
408 | context = ON_DESKTOP; | 409 | context = ON_DESKTOP; |
410 | else if (strstr(val[argc].c_str(), "ebar")) | ||
411 | context = ON_TITLEBAR; | ||
412 | else if (strstr(val[argc].c_str(), "bar")) | ||
413 | context = ON_TOOLBAR; | ||
414 | else if (strstr(val[argc].c_str(), "ow")) | ||
415 | context = ON_WINDOW; | ||
409 | // keycode covers the following three two-byte cases: | 416 | // keycode covers the following three two-byte cases: |
410 | // 0x - hex | 417 | // 0x - hex |
411 | // +[1-9] - number between +1 and +9 | 418 | // +[1-9] - number between +1 and +9 |