diff options
Diffstat (limited to 'src/WinClient.cc')
-rw-r--r-- | src/WinClient.cc | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/WinClient.cc b/src/WinClient.cc index b731c34..ddf0599 100644 --- a/src/WinClient.cc +++ b/src/WinClient.cc | |||
@@ -126,14 +126,6 @@ WinClient::~WinClient() { | |||
126 | 126 | ||
127 | clearStrut(); | 127 | clearStrut(); |
128 | 128 | ||
129 | if (fbwindow() != 0) | ||
130 | fbwindow()->removeClient(*this); | ||
131 | |||
132 | // this takes care of any focus issues | ||
133 | m_diesig.notify(); | ||
134 | |||
135 | Fluxbox *fluxbox = Fluxbox::instance(); | ||
136 | |||
137 | // | 129 | // |
138 | // clear transients and transient_for | 130 | // clear transients and transient_for |
139 | // | 131 | // |
@@ -149,6 +141,15 @@ WinClient::~WinClient() { | |||
149 | transients.back()->transient_for = 0; | 141 | transients.back()->transient_for = 0; |
150 | transients.pop_back(); | 142 | transients.pop_back(); |
151 | } | 143 | } |
144 | |||
145 | if (fbwindow() != 0) | ||
146 | fbwindow()->removeClient(*this); | ||
147 | |||
148 | // this takes care of any focus issues | ||
149 | m_diesig.notify(); | ||
150 | |||
151 | Fluxbox *fluxbox = Fluxbox::instance(); | ||
152 | |||
152 | // This fixes issue 1 (see WinClient.hh): | 153 | // This fixes issue 1 (see WinClient.hh): |
153 | // If transients die before the transient_for is created | 154 | // If transients die before the transient_for is created |
154 | removeTransientFromWaitingList(); | 155 | removeTransientFromWaitingList(); |