aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Tiefenbruck <mark@fluxbox.org>2007-12-30 22:16:58 (GMT)
committerMark Tiefenbruck <mark@fluxbox.org>2007-12-30 22:16:58 (GMT)
commit2590d207e084513dd63b11ae521cb65d3b407ed1 (patch)
tree1c184d4b3d94090433e1961508ec7a809253524b
parent0c1380128d6e99b59945a64eb2167df68c5e4577 (diff)
downloadfluxbox-2590d207e084513dd63b11ae521cb65d3b407ed1.zip
fluxbox-2590d207e084513dd63b11ae521cb65d3b407ed1.tar.bz2
this really needs to be fixed
-rw-r--r--src/Window.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Window.cc b/src/Window.cc
index a6ea166..90da1a3 100644
--- a/src/Window.cc
+++ b/src/Window.cc
@@ -2898,9 +2898,12 @@ void FluxboxWindow::enterNotifyEvent(XCrossingEvent &ev) {
2898 } 2898 }
2899 2899
2900 if (ev.window == frame().window()) { 2900 if (ev.window == frame().window()) {
2901 // save old value, so we can restore it later
2902 WinClient *old = WindowCmd<void>::client();
2901 WindowCmd<void>::setWindow(this); 2903 WindowCmd<void>::setWindow(this);
2902 Fluxbox::instance()->keys()->doAction(ev.type, ev.state, 0, 2904 Fluxbox::instance()->keys()->doAction(ev.type, ev.state, 0,
2903 Keys::ON_WINDOW); 2905 Keys::ON_WINDOW);
2906 WindowCmd<void>::setClient(old);
2904 } 2907 }
2905 2908
2906 WinClient *client = 0; 2909 WinClient *client = 0;
@@ -2957,9 +2960,12 @@ void FluxboxWindow::leaveNotifyEvent(XCrossingEvent &ev) {
2957 ev.y_root <= (int)(frame().y() + frame().height())) 2960 ev.y_root <= (int)(frame().y() + frame().height()))
2958 return; 2961 return;
2959 2962
2963 // save old value, so we can restore it later
2964 WinClient *old = WindowCmd<void>::client();
2960 WindowCmd<void>::setWindow(this); 2965 WindowCmd<void>::setWindow(this);
2961 Fluxbox::instance()->keys()->doAction(ev.type, ev.state, 0, 2966 Fluxbox::instance()->keys()->doAction(ev.type, ev.state, 0,
2962 Keys::ON_WINDOW); 2967 Keys::ON_WINDOW);
2968 WindowCmd<void>::setClient(old);
2963 2969
2964 // I hope commenting this out is right - simon 21jul2003 2970 // I hope commenting this out is right - simon 21jul2003
2965 //if (ev.window == frame().window()) 2971 //if (ev.window == frame().window())