From 780e773a6a3e2cebb911a420522353fe4d95d680 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Wed, 2 Jun 2010 22:35:37 +0200 Subject: [PATCH] split containers do not directly accepts windows (they only have children) --- src/con.c | 5 +++++ 1 file changed, 5 insertions(+) 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); } -- 2.39.5