From: Michael Stapelberg Date: Tue, 23 Jun 2009 21:10:04 +0000 (+0200) Subject: Bugfix: load current_col/current_row from workspace when setting focus (Thanks Mirko) X-Git-Tag: 3.b~27 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=81e9d8282a7a58d164673b9675d67353a61456f6;p=i3%2Fi3 Bugfix: load current_col/current_row from workspace when setting focus (Thanks Mirko) In the case of floating clients which have no container, the values were still the ones from your old workspace, which was a problem if your dimensions didn’t match… --- diff --git a/src/util.c b/src/util.c index ed9dc49a..9bb42872 100644 --- a/src/util.c +++ b/src/util.c @@ -319,6 +319,9 @@ void set_focus(xcb_connection_t *conn, Client *client, bool set_anyways) { c_ws->current_row = current_row; c_ws->current_col = current_col; c_ws = client->workspace; + /* Load current_col/current_row if we switch to a client without a container */ + current_col = c_ws->current_col; + current_row = c_ws->current_row; /* Update container */ if (client->container != NULL) {