diff options
author | Mark Tiefenbruck <mark@fluxbox.org> | 2007-12-19 07:11:09 (GMT) |
---|---|---|
committer | Mark Tiefenbruck <mark@fluxbox.org> | 2007-12-19 07:11:09 (GMT) |
commit | 8f66fe372a7ab1e6b12edd885ef648b2b02485ae (patch) | |
tree | 8c8141837f3d8e2549f094cb4bcd05a7f976c585 | |
parent | c381a130eb044f3ea643dcd864be5732f14f8014 (diff) | |
download | fluxbox-8f66fe372a7ab1e6b12edd885ef648b2b02485ae.zip fluxbox-8f66fe372a7ab1e6b12edd885ef648b2b02485ae.tar.bz2 |
don't minimize a window just because its transient got minimized
-rw-r--r-- | src/Window.cc | 19 |
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) |