From 6fd35dc9b581f4c52194a0aa5d13ce232f08d236 Mon Sep 17 00:00:00 2001 From: rathnor Date: Wed, 16 Apr 2003 10:49:59 +0000 Subject: fix focusing new windows - simon --- src/fluxbox.cc | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/src/fluxbox.cc b/src/fluxbox.cc index d6b7784..7e9c1da 100644 --- a/src/fluxbox.cc +++ b/src/fluxbox.cc @@ -22,7 +22,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: fluxbox.cc,v 1.111 2003/04/15 19:04:18 fluxgen Exp $ +// $Id: fluxbox.cc,v 1.112 2003/04/16 10:49:59 rathnor Exp $ #include "fluxbox.hh" @@ -680,18 +680,25 @@ void Fluxbox::handleEvent(XEvent * const e) { BScreen *scr = searchScreen(e->xmaprequest.parent); cerr<<"screen = "<createWindow(e->xmaprequest.window); + win = scr->createWindow(e->xmaprequest.window); else cerr<<"Fluxbox Warning! Could not find screen to map window on!"<mapRequestEvent(e->xmaprequest); + } break; - case MapNotify: + case MapNotify: { // handled directly in FluxboxWindow::handleEvent + + FluxboxWindow *win = searchWindow(e->xmap.window); + + if (win) + win->mapNotifyEvent(e->xmap); + } break; - case UnmapNotify: handleUnmapNotify(e->xunmap); -- cgit v0.11.2