From: Michael Stapelberg Date: Tue, 25 Oct 2011 22:41:52 +0000 (+0100) Subject: Also call workspace_show() when moving cursor to an empty output (Thanks mw) X-Git-Tag: 4.1~43 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ee804a063520939078c76cee013ae6447835fa53;p=i3%2Fi3 Also call workspace_show() when moving cursor to an empty output (Thanks mw) --- diff --git a/src/handlers.c b/src/handlers.c index aa3b418e..5e628bdf 100644 --- a/src/handlers.c +++ b/src/handlers.c @@ -148,7 +148,11 @@ static void check_crossing_screen_boundary(uint32_t x, uint32_t y) { /* Focus the output on which the user moved his cursor */ Con *old_focused = focused; - con_focus(con_descend_focused(output_get_content(output->con))); + Con *next = con_descend_focused(output_get_content(output->con)); + /* Since we are switching outputs, this *must* be a different workspace, so + * call workspace_show() */ + workspace_show(con_get_workspace(next)); + con_focus(next); /* If the focus changed, we re-render to get updated decorations */ if (old_focused != focused)