Bugfix: When re-assigning floating windows to a different output, use the last focused workspace, not the first
This commit is contained in:
parent
79323a0be0
commit
b2754fd679
@ -262,7 +262,7 @@ bool floating_maybe_reassign_ws(Con *con) {
|
|||||||
DLOG("Need to re-assign!\n");
|
DLOG("Need to re-assign!\n");
|
||||||
|
|
||||||
Con *content = output_get_content(output->con);
|
Con *content = output_get_content(output->con);
|
||||||
Con *ws = TAILQ_FIRST(&(content->nodes_head));
|
Con *ws = TAILQ_FIRST(&(content->focus_head));
|
||||||
DLOG("Moving con %p / %s to workspace %p / %s\n", con, con->name, ws, ws->name);
|
DLOG("Moving con %p / %s to workspace %p / %s\n", con, con->name, ws, ws->name);
|
||||||
con_move_to_workspace(con, ws);
|
con_move_to_workspace(con, ws);
|
||||||
con_focus(con_descend_focused(con));
|
con_focus(con_descend_focused(con));
|
||||||
|
Loading…
Reference in New Issue
Block a user