aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Window.cc19
1 files changed, 5 insertions, 14 deletions
diff --git a/src/Window.cc b/src/Window.cc
index 125347b..fc710dc 100644
--- a/src/Window.cc
+++ b/src/Window.cc
@@ -1397,20 +1397,11 @@ void FluxboxWindow::iconify() {
1397 const ClientList::iterator client_it_end = m_clientlist.end(); 1397 const ClientList::iterator client_it_end = m_clientlist.end();
1398 for (; client_it != client_it_end; ++client_it) { 1398 for (; client_it != client_it_end; ++client_it) {
1399 WinClient &client = *(*client_it); 1399 WinClient &client = *(*client_it);
1400 if (client.transientFor() && 1400 WinClient::TransientList::iterator it = client.transientList().begin();
1401 client.transientFor()->fbwindow()) { 1401 WinClient::TransientList::iterator it_end = client.transientList().end();
1402 if (!client.transientFor()->fbwindow()->isIconic()) { 1402 for (; it != it_end; it++)
1403 client.transientFor()->fbwindow()->iconify(); 1403 if ((*it)->fbwindow())
1404 } 1404 (*it)->fbwindow()->iconify();
1405 }
1406
1407 if (!client.transientList().empty()) {
1408 WinClient::TransientList::iterator it = client.transientList().begin();
1409 WinClient::TransientList::iterator it_end = client.transientList().end();
1410 for (; it != it_end; it++)
1411 if ((*it)->fbwindow())
1412 (*it)->fbwindow()->iconify();
1413 }
1414 } 1405 }
1415 1406
1416 // focus revert is done elsewhere (based on signal) 1407 // focus revert is done elsewhere (based on signal)