]> git.sur5r.net Git - i3/i3/commitdiff
randr_query_outputs: con_activate -> workspace_show
authorOrestis Floros <orestisf1993@gmail.com>
Fri, 17 Aug 2018 03:06:56 +0000 (06:06 +0300)
committerOrestis Floros <orestisf1993@gmail.com>
Fri, 17 Aug 2018 09:49:15 +0000 (12:49 +0300)
workspace_show will call x_set_warp_to if needed.

Fixes #3333

src/randr.c

index 38f1ee972eaf370335dc53934bbd85282c298ee6..44071a53c5d49d78820c5bce6b83387497f15567 100644 (file)
@@ -946,7 +946,9 @@ void randr_query_outputs(void) {
             continue;
 
         DLOG("Focusing primary output %s\n", output_primary_name(output));
-        con_activate(con_descend_focused(output->con));
+        Con *content = output_get_content(output->con);
+        Con *ws = TAILQ_FIRST(&(content)->focus_head);
+        workspace_show(ws);
     }
 
     /* render_layout flushes */