aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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())