From: Michael Stapelberg Date: Mon, 2 May 2011 09:05:50 +0000 (+0200) Subject: Bugfix: When re-assigning floating windows to a different output, use the last focuse... X-Git-Tag: tree-pr3~55 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b2754fd67907ba974387671d4ef01e5802042e93;p=i3%2Fi3 Bugfix: When re-assigning floating windows to a different output, use the last focused workspace, not the first --- diff --git a/src/floating.c b/src/floating.c index 23f8a60a..875407a7 100644 --- a/src/floating.c +++ b/src/floating.c @@ -262,7 +262,7 @@ bool floating_maybe_reassign_ws(Con *con) { DLOG("Need to re-assign!\n"); 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); con_move_to_workspace(con, ws); con_focus(con_descend_focused(con));