]> git.sur5r.net Git - i3/i3/commitdiff
Don't raise floating windows when workspace is shown 3153/head
authorOrestis Floros <orestisf1993@gmail.com>
Mon, 26 Feb 2018 01:26:05 +0000 (03:26 +0200)
committerOrestis Floros <orestisf1993@gmail.com>
Mon, 26 Feb 2018 01:26:05 +0000 (03:26 +0200)
From comment:
https://github.com/i3/i3/issues/2990#issuecomment-368345169

To easily reproduce:
1. Open 2 floating windows
2. Focus (with `focus_follows_mouse`) the one behind
3. Move the mouse to the other workspace
4. Move the mouse inside the previous workspace (without it even
touching a window)

src/workspace.c

index d200b6e43fd391d0244ba2aff6d05af01b6fd911..4c14e8c1e35118d0d7f877ab49469d8a22afba3e 100644 (file)
@@ -412,7 +412,7 @@ static void _workspace_show(Con *workspace) {
     if (next->urgent && (int)(config.workspace_urgency_timer * 1000) > 0) {
         /* focus for now… */
         next->urgent = false;
-        con_activate(next);
+        con_focus(next);
 
         /* … 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
@@ -435,7 +435,7 @@ static void _workspace_show(Con *workspace) {
             ev_timer_again(main_loop, focused->urgency_timer);
         }
     } else
-        con_activate(next);
+        con_focus(next);
 
     ipc_send_workspace_event("focus", workspace, current);