aboutsummaryrefslogtreecommitdiff
path: root/src/Keys.cc
diff options
context:
space:
mode:
authorThomas Lübking <thomas.luebking@gmail.com>2016-09-13 07:37:46 (GMT)
committerMathias Gumz <akira@fluxbox.org>2016-09-21 18:52:14 (GMT)
commit2678060eae574f3ff0858cd7907feaeb3c1f43df (patch)
tree4fb4fb7ab2f256566354767aecb34b1b9672ecb0 /src/Keys.cc
parent4545f4dac81f61b7e99769006888a8688eeb542c (diff)
downloadfluxbox-2678060eae574f3ff0858cd7907feaeb3c1f43df.zip
fluxbox-2678060eae574f3ff0858cd7907feaeb3c1f43df.tar.bz2
implement ON_SLIT actions
On the run, make it raise on left-clicks (like the toolbar) The enum already existed ;-) REQUEST: 113
Diffstat (limited to 'src/Keys.cc')
-rw-r--r--src/Keys.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/Keys.cc b/src/Keys.cc
index 846edea..774cd05 100644
--- a/src/Keys.cc
+++ b/src/Keys.cc
@@ -396,6 +396,8 @@ bool Keys::addBinding(const string &linebuffer) {
396 context |= ON_DESKTOP; 396 context |= ON_DESKTOP;
397 else if (arg == "ontoolbar") 397 else if (arg == "ontoolbar")
398 context |= ON_TOOLBAR; 398 context |= ON_TOOLBAR;
399 else if (arg == "onslit")
400 context |= ON_SLIT;
399 else if (arg == "onwindow") 401 else if (arg == "onwindow")
400 context |= ON_WINDOW; 402 context |= ON_WINDOW;
401 else if (arg == "ontitlebar") 403 else if (arg == "ontitlebar")
@@ -431,12 +433,12 @@ bool Keys::addBinding(const string &linebuffer) {
431 type = FocusIn; 433 type = FocusIn;
432 } else if (arg == "mouseover") { 434 } else if (arg == "mouseover") {
433 type = EnterNotify; 435 type = EnterNotify;
434 if (!(context & (ON_WINDOW|ON_TOOLBAR))) 436 if (!(context & (ON_WINDOW|ON_TOOLBAR|ON_SLIT)))
435 context |= ON_WINDOW; 437 context |= ON_WINDOW;
436 key = 0; 438 key = 0;
437 } else if (arg == "mouseout") { 439 } else if (arg == "mouseout") {
438 type = LeaveNotify; 440 type = LeaveNotify;
439 if (!(context & (ON_WINDOW|ON_TOOLBAR))) 441 if (!(context & (ON_WINDOW|ON_TOOLBAR|ON_SLIT)))
440 context |= ON_WINDOW; 442 context |= ON_WINDOW;
441 key = 0; 443 key = 0;
442 444
@@ -451,6 +453,8 @@ bool Keys::addBinding(const string &linebuffer) {
451 context = ON_TITLEBAR; 453 context = ON_TITLEBAR;
452 else if (strstr(arg.c_str(), "bar")) 454 else if (strstr(arg.c_str(), "bar"))
453 context = ON_TOOLBAR; 455 context = ON_TOOLBAR;
456 else if (strstr(arg.c_str(), "slit"))
457 context = ON_SLIT;
454 else if (strstr(arg.c_str(), "ow")) 458 else if (strstr(arg.c_str(), "ow"))
455 context = ON_WINDOW; 459 context = ON_WINDOW;
456 } else if (extractKeyFromString(arg, "click", key)) { 460 } else if (extractKeyFromString(arg, "click", key)) {