]> git.sur5r.net Git - i3/i3/blobdiff - src/output.c
Fix redundant casts to the same type
[i3/i3] / src / output.c
index c76dfd035d213360ef727663b3e98ff49fba6db4..571c01cfa49e7f19f98f0da23adc31aea8b8b10c 100644 (file)
@@ -101,6 +101,12 @@ void output_push_sticky_windows(Con *to_focus) {
                 if (con_is_sticky(current)) {
                     bool ignore_focus = (to_focus == NULL) || (current != to_focus->parent);
                     con_move_to_workspace(current, visible_ws, true, false, ignore_focus);
+                    if (!ignore_focus) {
+                        Con *current_ws = con_get_workspace(focused);
+                        con_activate(con_descend_focused(current));
+                        /* Pushing sticky windows shouldn't change the focused workspace. */
+                        con_activate(con_descend_focused(current_ws));
+                    }
                 }
             }
         }