diff options
author | fluxgen <fluxgen> | 2007-10-22 17:48:53 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2007-10-22 17:48:53 (GMT) |
commit | 41aec985ce641575381e3c6015c4ed95246d443b (patch) | |
tree | 4019a3e81343bc53fb1caab8bf08d41ac75ad772 /src | |
parent | c6a2605d76927eed881e4ff9df58a9ec600bf4a2 (diff) | |
download | fluxbox_paul-41aec985ce641575381e3c6015c4ed95246d443b.zip fluxbox_paul-41aec985ce641575381e3c6015c4ed95246d443b.tar.bz2 |
we can be in shutdown state, which means keys can be destroyed
Diffstat (limited to 'src')
-rw-r--r-- | src/Window.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Window.cc b/src/Window.cc index dbd945f..133ccd2 100644 --- a/src/Window.cc +++ b/src/Window.cc | |||
@@ -295,8 +295,11 @@ FluxboxWindow::FluxboxWindow(WinClient &client, FbWinFrameTheme &tm, | |||
295 | FluxboxWindow::~FluxboxWindow() { | 295 | FluxboxWindow::~FluxboxWindow() { |
296 | if (WindowCmd<void>::window() == this) | 296 | if (WindowCmd<void>::window() == this) |
297 | WindowCmd<void>::setWindow(0); | 297 | WindowCmd<void>::setWindow(0); |
298 | if ( Fluxbox::instance()->keys() != 0 ) { | ||
299 | Fluxbox::instance()->keys()-> | ||
300 | unregisterWindow(frame().window().window()); | ||
301 | } | ||
298 | 302 | ||
299 | Fluxbox::instance()->keys()->unregisterWindow(frame().window().window()); | ||
300 | 303 | ||
301 | #ifdef DEBUG | 304 | #ifdef DEBUG |
302 | const char* title = m_client ? m_client->title().c_str() : "" ; | 305 | const char* title = m_client ? m_client->title().c_str() : "" ; |