Enable switching to containers when the current container has only one client

next
Michael Stapelberg 2009-03-05 19:47:16 +01:00
parent c5dffde101
commit d2d6c0de12
1 changed files with 4 additions and 0 deletions

View File

@ -41,6 +41,10 @@ static bool focus_window_in_container(xcb_connection_t *conn, Container *contain
candidate = CIRCLEQ_FIRST(&(container->clients));
} else printf("Direction not implemented!\n");
/* If we could not switch, the container contains exactly one client. We return false */
if (candidate == container->currently_focused)
return false;
/* Set focus */
set_focus(conn, candidate);