From: Michael Stapelberg Date: Wed, 2 Jun 2010 20:35:37 +0000 (+0200) Subject: split containers do not directly accepts windows (they only have children) X-Git-Tag: tree-pr1~185 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=780e773a6a3e2cebb911a420522353fe4d95d680;p=i3%2Fi3 split containers do not directly accepts windows (they only have children) --- diff --git a/src/con.c b/src/con.c index 19227708..8aa1608c 100644 --- a/src/con.c +++ b/src/con.c @@ -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); }