aboutsummaryrefslogtreecommitdiff
path: root/src/fluxbox.cc
diff options
context:
space:
mode:
authorrathnor <rathnor>2003-04-16 10:49:59 (GMT)
committerrathnor <rathnor>2003-04-16 10:49:59 (GMT)
commit6fd35dc9b581f4c52194a0aa5d13ce232f08d236 (patch)
tree33cad7128c4334060168508a927f7b9f0d7c8446 /src/fluxbox.cc
parent48c401df0c2d0e0c4a55c9437a34defc6f75e208 (diff)
downloadfluxbox_pavel-6fd35dc9b581f4c52194a0aa5d13ce232f08d236.zip
fluxbox_pavel-6fd35dc9b581f4c52194a0aa5d13ce232f08d236.tar.bz2
fix focusing new windows - simon
Diffstat (limited to 'src/fluxbox.cc')
-rw-r--r--src/fluxbox.cc17
1 files 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 @@
22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23// DEALINGS IN THE SOFTWARE. 23// DEALINGS IN THE SOFTWARE.
24 24
25// $Id: fluxbox.cc,v 1.111 2003/04/15 19:04:18 fluxgen Exp $ 25// $Id: fluxbox.cc,v 1.112 2003/04/16 10:49:59 rathnor Exp $
26 26
27#include "fluxbox.hh" 27#include "fluxbox.hh"
28 28
@@ -680,18 +680,25 @@ void Fluxbox::handleEvent(XEvent * const e) {
680 BScreen *scr = searchScreen(e->xmaprequest.parent); 680 BScreen *scr = searchScreen(e->xmaprequest.parent);
681 cerr<<"screen = "<<scr<<endl; 681 cerr<<"screen = "<<scr<<endl;
682 if (scr != 0) 682 if (scr != 0)
683 scr->createWindow(e->xmaprequest.window); 683 win = scr->createWindow(e->xmaprequest.window);
684 else 684 else
685 cerr<<"Fluxbox Warning! Could not find screen to map window on!"<<endl; 685 cerr<<"Fluxbox Warning! Could not find screen to map window on!"<<endl;
686 } 686 }
687 // handled in FluxboxWindow::handleEvent 687 // handled in FluxboxWindow::handleEvent
688 688 if (win)
689 win->mapRequestEvent(e->xmaprequest);
690
689 } 691 }
690 break; 692 break;
691 case MapNotify: 693 case MapNotify: {
692 // handled directly in FluxboxWindow::handleEvent 694 // handled directly in FluxboxWindow::handleEvent
695
696 FluxboxWindow *win = searchWindow(e->xmap.window);
697
698 if (win)
699 win->mapNotifyEvent(e->xmap);
700 }
693 break; 701 break;
694
695 702
696 case UnmapNotify: 703 case UnmapNotify:
697 handleUnmapNotify(e->xunmap); 704 handleUnmapNotify(e->xunmap);