aboutsummaryrefslogtreecommitdiff
path: root/src/Keys.cc
diff options
context:
space:
mode:
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)) {