diff options
Diffstat (limited to 'src/Toolbar.cc')
-rw-r--r-- | src/Toolbar.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Toolbar.cc b/src/Toolbar.cc index 2694a4c..3639df7 100644 --- a/src/Toolbar.cc +++ b/src/Toolbar.cc | |||
@@ -35,6 +35,7 @@ | |||
35 | #include "fluxbox.hh" | 35 | #include "fluxbox.hh" |
36 | #include "Keys.hh" | 36 | #include "Keys.hh" |
37 | #include "Screen.hh" | 37 | #include "Screen.hh" |
38 | #include "WindowCmd.hh" | ||
38 | #include "IntResMenuItem.hh" | 39 | #include "IntResMenuItem.hh" |
39 | #include "BoolMenuItem.hh" | 40 | #include "BoolMenuItem.hh" |
40 | 41 | ||
@@ -524,6 +525,7 @@ void Toolbar::reconfigure() { | |||
524 | 525 | ||
525 | 526 | ||
526 | void Toolbar::buttonPressEvent(XButtonEvent &be) { | 527 | void Toolbar::buttonPressEvent(XButtonEvent &be) { |
528 | WindowCmd<void>::setWindow(0); | ||
527 | if (Fluxbox::instance()->keys()->doAction(be.type, be.state, be.button, | 529 | if (Fluxbox::instance()->keys()->doAction(be.type, be.state, be.button, |
528 | Keys::ON_TOOLBAR)) | 530 | Keys::ON_TOOLBAR)) |
529 | return; | 531 | return; |
@@ -557,6 +559,7 @@ void Toolbar::buttonPressEvent(XButtonEvent &be) { | |||
557 | } | 559 | } |
558 | 560 | ||
559 | void Toolbar::enterNotifyEvent(XCrossingEvent &ce) { | 561 | void Toolbar::enterNotifyEvent(XCrossingEvent &ce) { |
562 | WindowCmd<void>::setWindow(0); | ||
560 | Fluxbox::instance()->keys()->doAction(ce.type, ce.state, 0, | 563 | Fluxbox::instance()->keys()->doAction(ce.type, ce.state, 0, |
561 | Keys::ON_TOOLBAR); | 564 | Keys::ON_TOOLBAR); |
562 | if (! doAutoHide()) { | 565 | if (! doAutoHide()) { |