diff options
author | fluxgen <fluxgen> | 2003-04-25 11:21:17 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2003-04-25 11:21:17 (GMT) |
commit | ccf0afe07e647e41debfcf62acadb29d0bbef11e (patch) | |
tree | b731fa17b06c172f5a847fcb1d07abe066602b44 | |
parent | 9f0885bcbe2da232b5084d078ad7970a05f9b355 (diff) | |
download | fluxbox_lack-ccf0afe07e647e41debfcf62acadb29d0bbef11e.zip fluxbox_lack-ccf0afe07e647e41debfcf62acadb29d0bbef11e.tar.bz2 |
just some extra safety
-rw-r--r-- | src/WinClient.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/WinClient.cc b/src/WinClient.cc index 5812b9b..7f15476 100644 --- a/src/WinClient.cc +++ b/src/WinClient.cc | |||
@@ -19,7 +19,7 @@ | |||
19 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 19 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
20 | // DEALINGS IN THE SOFTWARE. | 20 | // DEALINGS IN THE SOFTWARE. |
21 | 21 | ||
22 | // $Id: WinClient.cc,v 1.3 2003/04/15 12:12:29 fluxgen Exp $ | 22 | // $Id: WinClient.cc,v 1.4 2003/04/25 11:21:17 fluxgen Exp $ |
23 | 23 | ||
24 | #include "WinClient.hh" | 24 | #include "WinClient.hh" |
25 | 25 | ||
@@ -28,6 +28,7 @@ | |||
28 | #include "Screen.hh" | 28 | #include "Screen.hh" |
29 | #include "i18n.hh" | 29 | #include "i18n.hh" |
30 | #include "FbAtoms.hh" | 30 | #include "FbAtoms.hh" |
31 | #include "EventManager.hh" | ||
31 | 32 | ||
32 | #include <iostream> | 33 | #include <iostream> |
33 | #include <algorithm> | 34 | #include <algorithm> |
@@ -113,6 +114,7 @@ WinClient::~WinClient() { | |||
113 | 114 | ||
114 | if (m_win != 0) | 115 | if (m_win != 0) |
115 | m_win->removeClient(*this); | 116 | m_win->removeClient(*this); |
117 | FbTk::EventManager::instance()->remove(window()); | ||
116 | m_win = 0; | 118 | m_win = 0; |
117 | 119 | ||
118 | } | 120 | } |