summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Tiefenbruck <mark@fluxbox.org>2009-08-08 16:14:39 (GMT)
committerMark Tiefenbruck <mark@fluxbox.org>2009-08-08 16:14:39 (GMT)
commit07da360b2be4a96e82de80d25b0506d58ea8124e (patch)
treef012f7d356f40536ad0eca4f1935d63e6206fe8d
parent9dcbff31b492ca4277471accc95696e0f9a0dd20 (diff)
downloadfluxbox_lack-07da360b2be4a96e82de80d25b0506d58ea8124e.zip
fluxbox_lack-07da360b2be4a96e82de80d25b0506d58ea8124e.tar.bz2
more fixes for fluxconf mangling the keys file
-rw-r--r--src/Keys.cc7
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