From 8f66fe372a7ab1e6b12edd885ef648b2b02485ae Mon Sep 17 00:00:00 2001 From: Mark Tiefenbruck Date: Tue, 18 Dec 2007 23:11:09 -0800 Subject: don't minimize a window just because its transient got minimized --- src/Window.cc | 19 +++++-------------- 1 file 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() { const ClientList::iterator client_it_end = m_clientlist.end(); for (; client_it != client_it_end; ++client_it) { WinClient &client = *(*client_it); - if (client.transientFor() && - client.transientFor()->fbwindow()) { - if (!client.transientFor()->fbwindow()->isIconic()) { - client.transientFor()->fbwindow()->iconify(); - } - } - - if (!client.transientList().empty()) { - WinClient::TransientList::iterator it = client.transientList().begin(); - WinClient::TransientList::iterator it_end = client.transientList().end(); - for (; it != it_end; it++) - if ((*it)->fbwindow()) - (*it)->fbwindow()->iconify(); - } + WinClient::TransientList::iterator it = client.transientList().begin(); + WinClient::TransientList::iterator it_end = client.transientList().end(); + for (; it != it_end; it++) + if ((*it)->fbwindow()) + (*it)->fbwindow()->iconify(); } // focus revert is done elsewhere (based on signal) -- cgit v0.11.2