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