Bugfix: RandR: Correctly keep focus on the focused workspace when an output disappears (Thanks AlexanderB, xeen)

This commit is contained in:
Michael Stapelberg 2011-10-31 12:11:34 +00:00
parent 51e0d1b741
commit 2b6504d310
1 changed files with 2 additions and 1 deletions

View File

@ -743,7 +743,7 @@ void randr_query_outputs() {
Con *next = NULL;
if (TAILQ_FIRST(&(croot->focus_head)) == output->con) {
DLOG("This output (%p) was focused! Getting next\n", output->con);
next = con_next_focused(output->con);
next = focused;
DLOG("next = %p\n", next);
}
@ -763,6 +763,7 @@ void randr_query_outputs() {
if (next) {
DLOG("now focusing next = %p\n", next);
con_focus(next);
workspace_show(con_get_workspace(next));
}
/* 3: move the dock clients to the first output */