summaryrefslogtreecommitdiff
path: root/src/fluxbox.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/fluxbox.cc')
-rw-r--r--src/fluxbox.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/fluxbox.cc b/src/fluxbox.cc
index 001b146..07c86fd 100644
--- a/src/fluxbox.cc
+++ b/src/fluxbox.cc
@@ -22,7 +22,7 @@
22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23// DEALINGS IN THE SOFTWARE. 23// DEALINGS IN THE SOFTWARE.
24 24
25// $Id: fluxbox.cc,v 1.249 2004/08/18 16:30:33 rathnor Exp $ 25// $Id: fluxbox.cc,v 1.250 2004/08/27 17:24:49 rathnor Exp $
26 26
27#include "fluxbox.hh" 27#include "fluxbox.hh"
28 28
@@ -1621,13 +1621,16 @@ void Fluxbox::restart(const char *prog) {
1621 1621
1622/// prepares fluxbox for a shutdown 1622/// prepares fluxbox for a shutdown
1623void Fluxbox::shutdown() { 1623void Fluxbox::shutdown() {
1624 if (m_shutdown)
1625 return;
1626
1627 m_shutdown = true;
1624 1628
1625 XSetInputFocus(FbTk::App::instance()->display(), PointerRoot, None, CurrentTime); 1629 XSetInputFocus(FbTk::App::instance()->display(), PointerRoot, None, CurrentTime);
1626 1630
1627 //send shutdown to all screens 1631 //send shutdown to all screens
1628 for_each(m_screen_list.begin(), m_screen_list.end(), mem_fun(&BScreen::shutdown)); 1632 for_each(m_screen_list.begin(), m_screen_list.end(), mem_fun(&BScreen::shutdown));
1629 1633
1630 m_shutdown = true;
1631 sync(false); 1634 sync(false);
1632 1635
1633} 1636}