? fbrun-persistent.cvs.patch Index: util/fbrun/FbRun.cc =================================================================== RCS file: /cvsroot/fluxbox/fluxbox/util/fbrun/FbRun.cc,v retrieving revision 1.30 diff -a -b -B -p -u -r1.30 FbRun.cc --- util/fbrun/FbRun.cc 22 Apr 2004 21:01:58 -0000 1.30 +++ util/fbrun/FbRun.cc 5 Aug 2004 11:04:55 -0000 @@ -61,7 +61,8 @@ FbRun::FbRun(int x, int y, size_t width) m_end(false), m_current_history_item(0), m_current_apps_item(0), - m_cursor(XCreateFontCursor(FbTk::App::instance()->display(), XC_xterm)) { + m_cursor(XCreateFontCursor(FbTk::App::instance()->display(), XC_xterm)), + m_persistent(false) { setGC(m_gc.gc()); setCursor(m_cursor); @@ -107,8 +108,11 @@ FbRun::~FbRun() { } void FbRun::run(const std::string &command) { + + if (!m_persistent) { FbTk::App::instance()->end(); // end application m_end = true; // mark end of processing + } // fork and execute program if (!fork()) { @@ -117,7 +121,9 @@ void FbRun::run(const std::string &comma exit(0); //exit child } + if (!m_persistent) { hide(); // hide gui + } // save command history to file if (text().size() != 0) { // no need to save empty command @@ -154,6 +160,8 @@ void FbRun::run(const std::string &comma cerr<<"FbRun Warning: Can't write command history to file: "<