focus a window if it's the only one.
Thanks Jonas Koelker
This commit is contained in:
parent
191acd1883
commit
97c89e64b3
2 changed files with 5 additions and 1 deletions
|
@ -1,6 +1,9 @@
|
|||
(Format: Year/Month/Day)
|
||||
Changes for 0.9.16:
|
||||
*06/04/23:
|
||||
* Focus singular windows on a workspace (Simon / thanks Jonas Koelker)
|
||||
sf.net patch #1474722
|
||||
Window.cc
|
||||
* Tidy up window cycling, and make linear mode work in order of
|
||||
creation (Thanks Mark Tiefenbruck, mark at tiefenbruck dot org)
|
||||
FocusControl.hh/cc
|
||||
|
|
|
@ -1546,7 +1546,8 @@ void FluxboxWindow::deiconify(bool reassoc, bool do_raise) {
|
|||
|
||||
show();
|
||||
|
||||
if (was_iconic && screen().focusControl().focusNew())
|
||||
// focus new, OR if it's the only window on the workspace
|
||||
if (was_iconic && (screen().focusControl().focusNew() || screen().currentWorkspace()->numberOfWindows() == 1))
|
||||
setInputFocus();
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue