aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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