fixup! query: eliminate query.maximized tristates

This commit is contained in:
Andrew J. Hesford 2024-10-30 14:15:38 -04:00
parent ac2d1b4177
commit e1069a0bea
2 changed files with 9 additions and 8 deletions

View file

@ -393,13 +393,10 @@ Actions that execute other actions. Used in keyboard/mouse bindings.
*shaded* [yes|no] *shaded* [yes|no]
Whether or not the client is rolled up. Whether or not the client is rolled up.
*maximized* [yes|horizontal|vertical|no] *maximized* [both|horizontal|vertical|none]
Whether the client is maximized along both axes (yes), Whether the client is maximized along both axes, the
the horizontal axis only (horizontal), the vertical horizontal axis only, the vertical axis only, or neither
axis only (vertical) or neither axis (no). axis (none).
The keyword "full" may be used as a synonym for "yes",
while "none" may be used as a synonym for "no".
*iconified* [yes|no] *iconified* [yes|no]
Whether or not the client is iconified. Whether or not the client is iconified.

View file

@ -53,11 +53,15 @@ enum three_state {
* Therefore when parsing rc.xml, "None" means "Invalid". * Therefore when parsing rc.xml, "None" means "Invalid".
*/ */
enum view_axis { enum view_axis {
VIEW_AXIS_INVALID = -1,
VIEW_AXIS_NONE = 0, VIEW_AXIS_NONE = 0,
VIEW_AXIS_HORIZONTAL = (1 << 0), VIEW_AXIS_HORIZONTAL = (1 << 0),
VIEW_AXIS_VERTICAL = (1 << 1), VIEW_AXIS_VERTICAL = (1 << 1),
VIEW_AXIS_BOTH = (VIEW_AXIS_HORIZONTAL | VIEW_AXIS_VERTICAL), VIEW_AXIS_BOTH = (VIEW_AXIS_HORIZONTAL | VIEW_AXIS_VERTICAL),
/*
* If view_axis is treated as a bitfield, INVALID should never
* set the HORIZONTAL or VERTICAL bits.
*/
VIEW_AXIS_INVALID = (1 << 2),
}; };
enum view_edge { enum view_edge {