Enable switching to containers when the current container has only one client
This commit is contained in:
parent
c5dffde101
commit
d2d6c0de12
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue