From c222ff6f0ab9bb1b7ddefded3be41d7350624626 Mon Sep 17 00:00:00 2001 From: fluxgen Date: Mon, 11 Feb 2002 11:33:14 +0000 Subject: fixed window creation --- src/fluxbox.cc | 25 ++++++++----------------- 1 file changed, 8 insertions(+), 17 deletions(-) diff --git a/src/fluxbox.cc b/src/fluxbox.cc index 821bc78..7a6cfc0 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.30 2002/02/10 11:18:17 fluxgen Exp $ +// $Id: fluxbox.cc,v 1.31 2002/02/11 11:33:14 fluxgen Exp $ //Use some GNU extensions #ifndef _GNU_SOURCE @@ -551,15 +551,13 @@ void Fluxbox::process_event(XEvent *e) { FluxboxWindow *win = searchWindow(e->xmaprequest.window); if (! win) { - try { - win = new FluxboxWindow(e->xmaprequest.window); - } catch (FluxboxWindow::Error error) { - FluxboxWindow::showError(error); + win = new FluxboxWindow(e->xmaprequest.window); + if (!win->isManaged()) { delete win; win = 0; } } - + if ((win = searchWindow(e->xmaprequest.window))) win->mapRequestEvent(&e->xmaprequest); @@ -568,7 +566,6 @@ void Fluxbox::process_event(XEvent *e) { case MapNotify: { FluxboxWindow *win = searchWindow(e->xmap.window); - XMapWindow(getXDisplay(), e->xmap.window); if (win!=0) win->mapNotifyEvent(&e->xmap); @@ -591,10 +588,10 @@ void Fluxbox::process_event(XEvent *e) { if ((win = searchWindow(e->xunmap.window))!=0 ) { // only process windows with StructureNotify selected // (ignore SubstructureNotify) - if (win->getClientWindow() != e->xunmap.window || - win->isTransient()) { +// if (win->getClientWindow() != e->xunmap.window || +// win->isTransient()) { win->unmapNotifyEvent(&e->xunmap); - } +// } #ifdef SLIT } else if ((slit = searchSlit(e->xunmap.window))!=0) { slit->removeClient(e->xunmap.window); @@ -1718,10 +1715,7 @@ void Fluxbox::shutdown(void) { //saves resources //---------------------- void Fluxbox::save_rc(void) { - #ifdef DEBUG - cerr<<__FILE__<<"("<<__LINE__<<"): Saving resources --------------"< dbfile(getRcFilename()); - #ifdef DEBUG - cerr<<__FILE__<<"("<<__LINE__<<"): dbfile="<