diff options
author | Mathias Gumz <akira at fluxbox dot org> | 2010-05-05 06:41:03 (GMT) |
---|---|---|
committer | Mathias Gumz <akira at fluxbox dot org> | 2010-05-05 06:41:03 (GMT) |
commit | a10bab0f7cf9d41b9d462c643a3971c3ac348953 (patch) | |
tree | 3970736e2b58266e923e242e76eedae01261159c /src/Keys.cc | |
parent | c1ed89194660be4419b73656e06b16b673003a9b (diff) | |
download | fluxbox-a10bab0f7cf9d41b9d462c643a3971c3ac348953.zip fluxbox-a10bab0f7cf9d41b9d462c643a3971c3ac348953.tar.bz2 |
added OnLeftGrip, OnRightGrip, OnWindowBorder modifiers for keys file
this allows to move some hardcoded keysbindings into the keys file and
makes the code simpler
Diffstat (limited to 'src/Keys.cc')
-rw-r--r-- | src/Keys.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/Keys.cc b/src/Keys.cc index 277dbe6..c050fd6 100644 --- a/src/Keys.cc +++ b/src/Keys.cc | |||
@@ -352,6 +352,10 @@ void Keys::loadDefaults() { | |||
352 | addBinding("OnDesktop Mouse2 :WorkspaceMenu"); | 352 | addBinding("OnDesktop Mouse2 :WorkspaceMenu"); |
353 | addBinding("OnDesktop Mouse3 :RootMenu"); | 353 | addBinding("OnDesktop Mouse3 :RootMenu"); |
354 | addBinding("OnTitlebar Mouse3 :WindowMenu"); | 354 | addBinding("OnTitlebar Mouse3 :WindowMenu"); |
355 | addBinding("OnTitlebar Move1 :StartMoving"); | ||
356 | addBinding("OnLeftGrip Move1 :StartResizing bottomleft"); | ||
357 | addBinding("OnRighttGrip Move1 :StartResizing bottomright"); | ||
358 | addBinding("OnWindowBorder Move1 :StartMoving"); | ||
355 | addBinding("Mod1 Tab :NextWindow"); | 359 | addBinding("Mod1 Tab :NextWindow"); |
356 | addBinding("Mod1 Shift Tab :PrevWindow"); | 360 | addBinding("Mod1 Shift Tab :PrevWindow"); |
357 | keyMode("default"); | 361 | keyMode("default"); |
@@ -402,6 +406,12 @@ bool Keys::addBinding(const string &linebuffer) { | |||
402 | context |= ON_WINDOW; | 406 | context |= ON_WINDOW; |
403 | else if (arg == "ontitlebar") | 407 | else if (arg == "ontitlebar") |
404 | context |= ON_TITLEBAR; | 408 | context |= ON_TITLEBAR; |
409 | else if (arg == "onwindowborder") | ||
410 | context |= ON_WINDOWBORDER; | ||
411 | else if (arg == "onleftgrip") | ||
412 | context |= ON_LEFTGRIP; | ||
413 | else if (arg == "onrightgrip") | ||
414 | context |= ON_RIGHTGRIP; | ||
405 | else if (arg == "double") | 415 | else if (arg == "double") |
406 | isdouble = true; | 416 | isdouble = true; |
407 | else if (arg != "none") { | 417 | else if (arg != "none") { |