From 07da360b2be4a96e82de80d25b0506d58ea8124e Mon Sep 17 00:00:00 2001 From: Mark Tiefenbruck Date: Sat, 8 Aug 2009 09:14:39 -0700 Subject: more fixes for fluxconf mangling the keys file --- src/Keys.cc | 7 +++++++ 1 file changed, 7 insertions(+) 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) { type = ButtonPress; key = atoi(val[argc].substr(5, val[argc].length()-5).c_str()); + // fluxconf mangles things like OnWindow Mouse# to Mouse#ow if (strstr(val[argc].c_str(), "top")) context = ON_DESKTOP; + else if (strstr(val[argc].c_str(), "ebar")) + context = ON_TITLEBAR; + else if (strstr(val[argc].c_str(), "bar")) + context = ON_TOOLBAR; + else if (strstr(val[argc].c_str(), "ow")) + context = ON_WINDOW; // keycode covers the following three two-byte cases: // 0x - hex // +[1-9] - number between +1 and +9 -- cgit v0.11.2