aboutsummaryrefslogtreecommitdiff
path: root/src/fluxbox.cc
diff options
context:
space:
mode:
authormarkt <markt>2007-04-01 21:42:01 (GMT)
committermarkt <markt>2007-04-01 21:42:01 (GMT)
commit48f761f9816f0f11e05dcc4e8f5ac506328e1683 (patch)
treecd93a828fb6db8eb1eb69db00be7ad37b97bf96a /src/fluxbox.cc
parentc883e477c547b14aae029b5376c1145a8439fcea (diff)
downloadfluxbox_pavel-48f761f9816f0f11e05dcc4e8f5ac506328e1683.zip
fluxbox_pavel-48f761f9816f0f11e05dcc4e8f5ac506328e1683.tar.bz2
fixed problem with creating windows in iconic state
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: