summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsimonb <simonb>2006-04-23 09:58:49 (GMT)
committersimonb <simonb>2006-04-23 09:58:49 (GMT)
commit97c89e64b3899cbc6fc94b93574519344a79c750 (patch)
treec7e1ec831bff1392b6497d81652f760f49e02695 /src
parent191acd188344e4f1d964274b9b9681e78d378b3e (diff)
downloadfluxbox_lack-97c89e64b3899cbc6fc94b93574519344a79c750.zip
fluxbox_lack-97c89e64b3899cbc6fc94b93574519344a79c750.tar.bz2
focus a window if it's the only one.
Thanks Jonas Koelker
Diffstat (limited to 'src')
-rw-r--r--src/Window.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Window.cc b/src/Window.cc
index 4ced1c6..7ffc1d5 100644
--- a/src/Window.cc
+++ b/src/Window.cc
@@ -1546,7 +1546,8 @@ void FluxboxWindow::deiconify(bool reassoc, bool do_raise) {
1546 1546
1547 show(); 1547 show();
1548 1548
1549 if (was_iconic && screen().focusControl().focusNew()) 1549 // focus new, OR if it's the only window on the workspace
1550 if (was_iconic && (screen().focusControl().focusNew() || screen().currentWorkspace()->numberOfWindows() == 1))
1550 setInputFocus(); 1551 setInputFocus();
1551 1552
1552 1553