From 81e9d8282a7a58d164673b9675d67353a61456f6 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Tue, 23 Jun 2009 23:10:04 +0200 Subject: [PATCH] Bugfix: load current_col/current_row from workspace when setting focus (Thanks Mirko) MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 | 3 +++ 1 file changed, 3 insertions(+) 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) { -- 2.39.5