]> git.sur5r.net Git - i3/i3/commitdiff
Bugfix: load current_col/current_row from workspace when setting focus (Thanks Mirko)
authorMichael Stapelberg <michael@stapelberg.de>
Tue, 23 Jun 2009 21:10:04 +0000 (23:10 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Tue, 23 Jun 2009 21:10:04 +0000 (23:10 +0200)
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…

src/util.c

index ed9dc49ab8ceb7f8422c2900618a4d41adb39514..9bb42872011aef91ddc6694b3750d7b9eb15f91a 100644 (file)
@@ -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) {