split containers do not directly accepts windows (they only have children)
This commit is contained in:
parent
bdb1065537
commit
780e773a6a
|
@ -115,6 +115,11 @@ bool con_accepts_window(Con *con) {
|
|||
if (con->type == CT_WORKSPACE)
|
||||
return false;
|
||||
|
||||
if (con->orientation != NO_ORIENTATION) {
|
||||
DLOG("container %p does not accepts windows, orientation != NO_ORIENTATION\n", con);
|
||||
return false;
|
||||
}
|
||||
|
||||
/* TODO: if this is a swallowing container, we need to check its max_clients */
|
||||
return (con->window == NULL);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue