From c7c9ec5f4d962a631e5c97a5c7efd6799ebac204 Mon Sep 17 00:00:00 2001
From: fluxgen <fluxgen>
Date: Sun, 27 Apr 2003 00:36:28 +0000
Subject: fixed focus new bug

---
 src/fluxbox.cc | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/src/fluxbox.cc b/src/fluxbox.cc
index 5512af3..8681e48 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.119 2003/04/26 05:42:36 rathnor Exp $
+// $Id: fluxbox.cc,v 1.120 2003/04/27 00:36:28 fluxgen Exp $
 
 #include "fluxbox.hh"
 
@@ -682,9 +682,12 @@ void Fluxbox::handleEvent(XEvent * const e) {
             win->mapRequestEvent(e->xmaprequest);
     }
         break;
-    case MapNotify:
-        // handled directly in FluxboxWindow::handleEvent    
-        break;
+    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);
 	break;	
-- 
cgit v0.11.2