.\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/>
.\" Date: 03/16/2020
.\" Manual: Bspwm Manual
-.\" Source: Bspwm 0.9.9-6-g41b2de0
+.\" Source: Bspwm 0.9.9-7-gda1dc1d
.\" Language: English
.\"
-.TH "BSPWM" "1" "03/16/2020" "Bspwm 0\&.9\&.9\-6\-g41b2de0" "Bspwm Manual"
+.TH "BSPWM" "1" "03/16/2020" "Bspwm 0\&.9\&.9\-7\-gda1dc1d" "Bspwm Manual"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
Only consider leaf nodes\&.
.RE
.PP
+[!]horizontal
+.RS 4
+Only consider nodes whose split type is horizontal\&.
+.RE
+.PP
+[!]vertical
+.RS 4
+Only consider nodes whose split type is vertical\&.
+.RE
+.PP
[!]window
.RS 4
Only consider nodes that hold a window\&.
[!]leaf::
Only consider leaf nodes.
+[!]horizontal::
+ Only consider nodes whose split type is horizontal.
+
+[!]vertical::
+ Only consider nodes whose split type is vertical.
+
[!]window::
Only consider nodes that hold a window.
GET_MOD(below)
GET_MOD(normal)
GET_MOD(above)
+ GET_MOD(horizontal)
+ GET_MOD(vertical)
} else {
return false;
}
.ancestor_of = OPTION_NONE,
.below = OPTION_NONE,
.normal = OPTION_NONE,
- .above = OPTION_NONE
+ .above = OPTION_NONE,
+ .horizontal = OPTION_NONE,
+ .vertical = OPTION_NONE
};
return sel;
}
WFLAG(urgent)
#undef WFLAG
+ if (sel->horizontal != OPTION_NONE &&
+ loc->node->split_type != TYPE_HORIZONTAL
+ ? sel->horizontal == OPTION_TRUE
+ : sel->horizontal == OPTION_FALSE) {
+ return false;
+ }
+
+ if (sel->vertical != OPTION_NONE &&
+ loc->node->split_type != TYPE_VERTICAL
+ ? sel->vertical == OPTION_TRUE
+ : sel->vertical == OPTION_FALSE) {
+ return false;
+ }
+
return true;
}
option_bool_t below;
option_bool_t normal;
option_bool_t above;
+ option_bool_t horizontal;
+ option_bool_t vertical;
} node_select_t;
typedef struct {