]> git.sur5r.net Git - i3/i3/commitdiff
Bugfix: When re-assigning floating windows to a different output, use the last focuse...
authorMichael Stapelberg <michael@stapelberg.de>
Mon, 2 May 2011 09:05:50 +0000 (11:05 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Mon, 2 May 2011 09:05:50 +0000 (11:05 +0200)
src/floating.c

index 23f8a60a682a0efb2763957483b08f17c30a0b4b..875407a70ec48d5c5d863925d423bd1ecf339275 100644 (file)
@@ -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));