randr_query_outputs: con_activate -> workspace_show

workspace_show will call x_set_warp_to if needed.

Fixes #3333
This commit is contained in:
Orestis Floros 2018-08-17 06:06:56 +03:00
parent 4b3ff9cdd4
commit 7010644964
No known key found for this signature in database
GPG Key ID: E9AD9F32E401E38F
1 changed files with 3 additions and 1 deletions

View 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 */