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
This commit is contained in:
parent
cae6fb627f
commit
a6e1b75b18
|
@ -398,6 +398,7 @@ void tree_split(Con *con, orientation_t orientation) {
|
||||||
bool level_up(void) {
|
bool level_up(void) {
|
||||||
/* We can focus up to the workspace, but not any higher in the tree */
|
/* We can focus up to the workspace, but not any higher in the tree */
|
||||||
if ((focused->parent->type != CT_CON &&
|
if ((focused->parent->type != CT_CON &&
|
||||||
|
focused->parent->type != CT_FLOATING_CON &&
|
||||||
focused->parent->type != CT_WORKSPACE) ||
|
focused->parent->type != CT_WORKSPACE) ||
|
||||||
focused->type == CT_WORKSPACE) {
|
focused->type == CT_WORKSPACE) {
|
||||||
ELOG("'focus parent': Focus is already on the workspace, cannot go higher than that.\n");
|
ELOG("'focus parent': Focus is already on the workspace, cannot go higher than that.\n");
|
||||||
|
|
Loading…
Reference in New Issue