workaround for keys files broken by fluxconf

This commit is contained in:
Mark Tiefenbruck 2008-04-30 08:31:04 -07:00
parent 92d1e5fcfb
commit 92c4489a7b

View file

@ -410,6 +410,8 @@ bool Keys::addBinding(const string &linebuffer) {
type = ButtonPress; type = ButtonPress;
key = atoi(val[argc].substr(5, key = atoi(val[argc].substr(5,
val[argc].length()-5).c_str()); val[argc].length()-5).c_str());
if (strstr(val[argc].c_str(), "top"))
context = ON_DESKTOP;
// keycode covers the following three two-byte cases: // keycode covers the following three two-byte cases:
// 0x - hex // 0x - hex
// +[1-9] - number between +1 and +9 // +[1-9] - number between +1 and +9