Merge pull request #3153 from orestisf1993/issue-2990

Don't raise floating windows when workspace is shown
This commit is contained in:
Ingo Bürk 2018-02-26 21:50:59 +01:00 committed by GitHub
commit 0ee3ca01b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -412,7 +412,7 @@ static void _workspace_show(Con *workspace) {
if (next->urgent && (int)(config.workspace_urgency_timer * 1000) > 0) { if (next->urgent && (int)(config.workspace_urgency_timer * 1000) > 0) {
/* focus for now… */ /* focus for now… */
next->urgent = false; next->urgent = false;
con_activate(next); con_focus(next);
/* … but immediately reset urgency flags; they will be set to false by /* … but immediately reset urgency flags; they will be set to false by
* the timer callback in case the container is focused at the time of * the timer callback in case the container is focused at the time of
@ -435,7 +435,7 @@ static void _workspace_show(Con *workspace) {
ev_timer_again(main_loop, focused->urgency_timer); ev_timer_again(main_loop, focused->urgency_timer);
} }
} else } else
con_activate(next); con_focus(next);
ipc_send_workspace_event("focus", workspace, current); ipc_send_workspace_event("focus", workspace, current);