aboutsummaryrefslogtreecommitdiff
path: root/src/fluxbox.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/fluxbox.cc')
-rw-r--r--src/fluxbox.cc10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/fluxbox.cc b/src/fluxbox.cc
index 2393837..5dc2b52 100644
--- a/src/fluxbox.cc
+++ b/src/fluxbox.cc
@@ -781,7 +781,6 @@ void Fluxbox::handleEvent(XEvent * const e) {
781#endif // DEBUG 781#endif // DEBUG
782 782
783 WinClient *winclient = searchWindow(e->xmaprequest.window); 783 WinClient *winclient = searchWindow(e->xmaprequest.window);
784 FluxboxWindow *win = 0;
785 784
786 if (! winclient) { 785 if (! winclient) {
787 BScreen *screen = 0; 786 BScreen *screen = 0;
@@ -807,15 +806,14 @@ void Fluxbox::handleEvent(XEvent * const e) {
807 if (screen == 0) { 806 if (screen == 0) {
808 cerr<<"Fluxbox "<<_FB_CONSOLETEXT(Fluxbox, CantMapWindow, "Warning! Could not find screen to map window on!", "")<<endl; 807 cerr<<"Fluxbox "<<_FB_CONSOLETEXT(Fluxbox, CantMapWindow, "Warning! Could not find screen to map window on!", "")<<endl;
809 } else 808 } else
810 win = screen->createWindow(e->xmaprequest.window); 809 screen->createWindow(e->xmaprequest.window);
811 810
812 } else { 811 } else {
813 win = winclient->fbwindow(); 812 // we don't handle MapRequest in FluxboxWindow::handleEvent
813 if (winclient->fbwindow())
814 winclient->fbwindow()->mapRequestEvent(e->xmaprequest);
814 } 815 }
815 816
816 // we don't handle MapRequest in FluxboxWindow::handleEvent
817 if (win)
818 win->mapRequestEvent(e->xmaprequest);
819 } 817 }
820 break; 818 break;
821 case MapNotify: 819 case MapNotify: