Replace the discrete 'split' Con property with a simple function.
This commit is contained in:
@ -33,6 +33,12 @@ void con_focus(Con *con);
|
||||
*/
|
||||
bool con_is_leaf(Con *con);
|
||||
|
||||
/*
|
||||
* Returns true if a container should be considered split.
|
||||
*
|
||||
*/
|
||||
bool con_is_split(Con *con);
|
||||
|
||||
/**
|
||||
* Returns true if this node accepts a window (if the node swallows windows,
|
||||
* it might already have swallowed enough and cannot hold any more).
|
||||
|
@ -440,8 +440,6 @@ struct Assignment {
|
||||
*/
|
||||
struct Con {
|
||||
bool mapped;
|
||||
/** whether this is a split container or not */
|
||||
bool split;
|
||||
enum {
|
||||
CT_ROOT = 0,
|
||||
CT_OUTPUT = 1,
|
||||
|
Reference in New Issue
Block a user