aboutsummaryrefslogtreecommitdiff
path: root/src/Toolbar.cc
diff options
context:
space:
mode:
authormarkt <markt>2007-11-23 18:41:23 (GMT)
committermarkt <markt>2007-11-23 18:41:23 (GMT)
commit9ed25584a17269efe85e63fe560bf00c495258c1 (patch)
treeb784a24b12417f135635bfff4239185f01722ffa /src/Toolbar.cc
parentd482cf6a54709a5867469835490c6a4a40f1a88e (diff)
downloadfluxbox-9ed25584a17269efe85e63fe560bf00c495258c1.zip
fluxbox-9ed25584a17269efe85e63fe560bf00c495258c1.tar.bz2
make sure window commands operate on the right window
Diffstat (limited to 'src/Toolbar.cc')
-rw-r--r--src/Toolbar.cc3
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
526void Toolbar::buttonPressEvent(XButtonEvent &be) { 527void 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
559void Toolbar::enterNotifyEvent(XCrossingEvent &ce) { 561void 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()) {