aboutsummaryrefslogtreecommitdiff
path: root/src/Keys.cc
diff options
context:
space:
mode:
authorThomas Lübking <thomas.luebking@gmail.com>2016-09-14 16:11:06 (GMT)
committerMathias Gumz <akira@fluxbox.org>2016-09-21 18:46:39 (GMT)
commit4545f4dac81f61b7e99769006888a8688eeb542c (patch)
tree975aabaae733dfec7039ad15caf5b11aa577fcac /src/Keys.cc
parent7fd13acab19dd449343fe8357946aa0c97d97f77 (diff)
downloadfluxbox-4545f4dac81f61b7e99769006888a8688eeb542c.zip
fluxbox-4545f4dac81f61b7e99769006888a8688eeb542c.tar.bz2
support OnWinButton, OnMinButton & OnMaxButton
... actions in keys. This allows to override the default behavior as well as adding actions for the mouse wheel. Special casing of the two "geometry" related buttons (eg. to perform smart maximization, reverse the partial maximzation, add shading to the min button or whatnot) All other buttons have a rather dedicated meaning and are only really interesting for adding mouse wheels or eg. the window menu on rmb clicks. Needs docu.
Diffstat (limited to 'src/Keys.cc')
-rw-r--r--src/Keys.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Keys.cc b/src/Keys.cc
index 072cba9..846edea 100644
--- a/src/Keys.cc
+++ b/src/Keys.cc
@@ -400,6 +400,12 @@ bool Keys::addBinding(const string &linebuffer) {
400 context |= ON_WINDOW; 400 context |= ON_WINDOW;
401 else if (arg == "ontitlebar") 401 else if (arg == "ontitlebar")
402 context |= ON_TITLEBAR; 402 context |= ON_TITLEBAR;
403 else if (arg == "onwinbutton")
404 context |= ON_WINBUTTON;
405 else if (arg == "onminbutton")
406 context |= ON_MINBUTTON; // one char diff, oh great ... ... blast!
407 else if (arg == "onmaxbutton")
408 context |= ON_MAXBUTTON;
403 else if (arg == "onwindowborder") 409 else if (arg == "onwindowborder")
404 context |= ON_WINDOWBORDER; 410 context |= ON_WINDOWBORDER;
405 else if (arg == "onleftgrip") 411 else if (arg == "onleftgrip")