From 2590d207e084513dd63b11ae521cb65d3b407ed1 Mon Sep 17 00:00:00 2001 From: Mark Tiefenbruck Date: Sun, 30 Dec 2007 14:16:58 -0800 Subject: this really needs to be fixed --- src/Window.cc | 6 ++++++ 1 file changed, 6 insertions(+) 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) { } if (ev.window == frame().window()) { + // save old value, so we can restore it later + WinClient *old = WindowCmd::client(); WindowCmd::setWindow(this); Fluxbox::instance()->keys()->doAction(ev.type, ev.state, 0, Keys::ON_WINDOW); + WindowCmd::setClient(old); } WinClient *client = 0; @@ -2957,9 +2960,12 @@ void FluxboxWindow::leaveNotifyEvent(XCrossingEvent &ev) { ev.y_root <= (int)(frame().y() + frame().height())) return; + // save old value, so we can restore it later + WinClient *old = WindowCmd::client(); WindowCmd::setWindow(this); Fluxbox::instance()->keys()->doAction(ev.type, ev.state, 0, Keys::ON_WINDOW); + WindowCmd::setClient(old); // I hope commenting this out is right - simon 21jul2003 //if (ev.window == frame().window()) -- cgit v0.11.2