]> git.sur5r.net Git - i3/i3/commitdiff
Bugfix: RandR: Correctly keep focus on the focused workspace when an output disappear...
authorMichael Stapelberg <michael@stapelberg.de>
Mon, 31 Oct 2011 12:11:34 +0000 (12:11 +0000)
committerMichael Stapelberg <michael@stapelberg.de>
Mon, 31 Oct 2011 12:11:34 +0000 (12:11 +0000)
src/randr.c

index ac61dd882f707f96ba7e1d108b7bd383f39312e6..b8907b956e71698482b258407b772f8d7d622d39 100644 (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 */