From 6749157af40b000ab6b15ad0698ee1aa9c4a3e33 Mon Sep 17 00:00:00 2001 From: fluxgen Date: Sun, 28 Apr 2002 18:57:10 +0000 Subject: dont save on shutdown --- src/fluxbox.cc | 22 +++++++--------------- 1 file changed, 7 insertions(+), 15 deletions(-) diff --git a/src/fluxbox.cc b/src/fluxbox.cc index e9e8f29..dbde663 100644 --- a/src/fluxbox.cc +++ b/src/fluxbox.cc @@ -22,9 +22,9 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: fluxbox.cc,v 1.53 2002/04/20 10:27:13 fluxgen Exp $ +// $Id: fluxbox.cc,v 1.54 2002/04/28 18:57:10 fluxgen Exp $ -//Use some GNU extensions +//Use GNU extensions #ifndef _GNU_SOURCE #define _GNU_SOURCE #endif // _GNU_SOURCE @@ -62,7 +62,6 @@ #include #endif // SHAPE - #ifdef HAVE_STDIO_H # include #endif // HAVE_STDIO_H @@ -1463,7 +1462,6 @@ bool Fluxbox::checkGnomeAtoms(XClientMessageEvent &ce) { FluxboxWindow *win = 0; win = searchWindow(ce.window); screen = searchScreen(ce.window); - if (ce.message_type == getGnomeWorkspaceAtom()) { #ifdef DEBUG cerr<<__FILE__<<"("<<__LINE__<<"): Got workspace atom="<changeWorkspaceID(ce.data.l[0]); return true; } else if (win) { - if (ce.message_type == getGnomeStateAtom()) { #ifdef DEBUG cerr<<__FILE__<<"("<<__LINE__<<"): _WIN_STATE"<::iterator it = screenList.begin(); std::list::iterator it_end = screenList.end(); for (; it != it_end; ++it) { - if(*it) { + if(*it) (*it)->shutdown(); - } } XSync(getXDisplay(), False); - save_rc(); } //------ save_rc -------- @@ -2243,8 +2239,6 @@ void Fluxbox::reconfigure(void) { void Fluxbox::real_reconfigure(void) { - BaseDisplay::GrabGuard gg(*this); - grab(); XrmDatabase new_blackboxrc = (XrmDatabase) 0; @@ -2273,9 +2267,8 @@ void Fluxbox::real_reconfigure(void) { std::list::iterator sit = screenList.begin(); std::list::iterator sit_end = screenList.end(); - for (; sit != sit_end; ++sit) { + for (; sit != sit_end; ++sit) (*sit)->reconfigure(); - } //reconfigure keys char *keyfilename = StringUtil::expandFilename(m_rc_keyfile->c_str()); @@ -2285,7 +2278,6 @@ void Fluxbox::real_reconfigure(void) { //reconfigure tabs reconfigureTabs(); - ungrab(); } //------------- reconfigureTabs ---------- @@ -2293,8 +2285,8 @@ void Fluxbox::real_reconfigure(void) { // --------------------------------------- void Fluxbox::reconfigureTabs(void) { //tab reconfiguring - std::map::iterator it = tabSearch.begin(); - std::map::iterator it_end = tabSearch.end(); + TabList::iterator it = tabSearch.begin(); + TabList::iterator it_end = tabSearch.end(); //setting all to unconfigured for (; it != it_end; ++it) { it->second->setConfigured(false); -- cgit v0.11.2