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

View File

@ -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);
}