aboutsummaryrefslogtreecommitdiff
path: root/src/Window.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/Window.cc')
-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