aboutsummaryrefslogtreecommitdiff
path: root/src/Toolbar.cc
diff options
context:
space:
mode:
authorMark Tiefenbruck <mark@fluxbox.org>2008-02-11 18:17:45 (GMT)
committerMark Tiefenbruck <mark@fluxbox.org>2008-02-11 18:17:45 (GMT)
commit611b6aa57e34ed8e52cb6b88c9adbafe4d67c6e2 (patch)
tree0d8edbf9e0356f7f93e87ca6970f684aabaae419 /src/Toolbar.cc
parentcd128d7a3e19e0608b992d5211d7ea88a73ed3cd (diff)
downloadfluxbox_pavel-611b6aa57e34ed8e52cb6b88c9adbafe4d67c6e2.zip
fluxbox_pavel-611b6aa57e34ed8e52cb6b88c9adbafe4d67c6e2.tar.bz2
more fun with the window menu
Diffstat (limited to 'src/Toolbar.cc')
-rw-r--r--src/Toolbar.cc13
1 files changed, 1 insertions, 12 deletions
diff --git a/src/Toolbar.cc b/src/Toolbar.cc
index 00cdfee..61402f1 100644
--- a/src/Toolbar.cc
+++ b/src/Toolbar.cc
@@ -520,14 +520,9 @@ void Toolbar::reconfigure() {
520 520
521 521
522void Toolbar::buttonPressEvent(XButtonEvent &be) { 522void Toolbar::buttonPressEvent(XButtonEvent &be) {
523 WinClient *old = WindowCmd<void>::client();
524 WindowCmd<void>::setWindow(0);
525 if (Fluxbox::instance()->keys()->doAction(be.type, be.state, be.button, 523 if (Fluxbox::instance()->keys()->doAction(be.type, be.state, be.button,
526 Keys::ON_TOOLBAR, be.time)) { 524 Keys::ON_TOOLBAR, 0, be.time))
527 WindowCmd<void>::setClient(old);
528 return; 525 return;
529 }
530 WindowCmd<void>::setClient(old);
531 526
532 if (be.button == 1) 527 if (be.button == 1)
533 raise(); 528 raise();
@@ -553,11 +548,8 @@ void Toolbar::buttonPressEvent(XButtonEvent &be) {
553} 548}
554 549
555void Toolbar::enterNotifyEvent(XCrossingEvent &ce) { 550void Toolbar::enterNotifyEvent(XCrossingEvent &ce) {
556 WinClient *old = WindowCmd<void>::client();
557 WindowCmd<void>::setWindow(0);
558 Fluxbox::instance()->keys()->doAction(ce.type, ce.state, 0, 551 Fluxbox::instance()->keys()->doAction(ce.type, ce.state, 0,
559 Keys::ON_TOOLBAR); 552 Keys::ON_TOOLBAR);
560 WindowCmd<void>::setClient(old);
561 553
562 if (! doAutoHide()) { 554 if (! doAutoHide()) {
563 if (isHidden()) 555 if (isHidden())
@@ -580,11 +572,8 @@ void Toolbar::leaveNotifyEvent(XCrossingEvent &event) {
580 event.y_root > y() && event.y_root <= (int)(y() + height())) 572 event.y_root > y() && event.y_root <= (int)(y() + height()))
581 return; 573 return;
582 574
583 WinClient *old = WindowCmd<void>::client();
584 WindowCmd<void>::setWindow(0);
585 Fluxbox::instance()->keys()->doAction(event.type, event.state, 0, 575 Fluxbox::instance()->keys()->doAction(event.type, event.state, 0,
586 Keys::ON_TOOLBAR); 576 Keys::ON_TOOLBAR);
587 WindowCmd<void>::setClient(old);
588 577
589 if (! doAutoHide()) 578 if (! doAutoHide())
590 return; 579 return;