diff options
Diffstat (limited to 'src/Toolbar.cc')
-rw-r--r-- | src/Toolbar.cc | 13 |
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 | ||
522 | void Toolbar::buttonPressEvent(XButtonEvent &be) { | 522 | void 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 | ||
555 | void Toolbar::enterNotifyEvent(XCrossingEvent &ce) { | 550 | void 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; |