allow floating cons to be reached using 'focus parent'

I suppose this was just an oversight. Let’s see if it causes any issues.

fixes #831
next
Michael Stapelberg 2012-10-04 18:50:33 +02:00
parent cae6fb627f
commit a6e1b75b18
1 changed files with 2 additions and 1 deletions

View File

@ -398,7 +398,8 @@ void tree_split(Con *con, orientation_t orientation) {
bool level_up(void) {
/* We can focus up to the workspace, but not any higher in the tree */
if ((focused->parent->type != CT_CON &&
focused->parent->type != CT_WORKSPACE) ||
focused->parent->type != CT_FLOATING_CON &&
focused->parent->type != CT_WORKSPACE) ||
focused->type == CT_WORKSPACE) {
ELOG("'focus parent': Focus is already on the workspace, cannot go higher than that.\n");
return false;