Also call workspace_show() when moving cursor to an empty output (Thanks mw)

next
Michael Stapelberg 2011-10-25 23:41:52 +01:00
parent 38447c4b47
commit ee804a0635
1 changed files with 5 additions and 1 deletions

View File

@ -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)