split containers do not directly accepts windows (they only have children)

This commit is contained in:
Michael Stapelberg 2010-06-02 22:35:37 +02:00
parent bdb1065537
commit 780e773a6a
1 changed files with 5 additions and 0 deletions

View File

@ -115,6 +115,11 @@ bool con_accepts_window(Con *con) {
if (con->type == CT_WORKSPACE) if (con->type == CT_WORKSPACE)
return false; 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 */ /* TODO: if this is a swallowing container, we need to check its max_clients */
return (con->window == NULL); return (con->window == NULL);
} }