Suppress no_focus for first window on a workspace.

With this patch, the no_focus directive will be ignored if the
to-be-opened window is the first on its workspace as there's no
reason the user would not want to focus it in this case.
This improves usability when, for example, using a tabbed
workspace_layout.

fixes #1987
This commit is contained in:
Ingo Bürk
2015-10-12 12:56:19 +02:00
committed by Michael Stapelberg
parent 94bdf607bb
commit bfd9960df2
3 changed files with 46 additions and 6 deletions

View File

@ -610,6 +610,10 @@ Note that this does not apply to all cases, e.g., when feeding data into a runni
causing it to request being focused. To configure the behavior in such cases, refer to
<<focus_on_window_activation>>.
+no_focus+ will also be ignored for the first window on a workspace as there shouldn't be
a reason to not focus the window in this case. This allows for better usability in
combination with +workspace_layout+.
*Syntax*:
-------------------
no_focus <criteria>