mirror of
https://github.com/swaywm/sway.git
synced 2026-04-27 06:46:25 -04:00
criteria: fullscreen mode criteria, fix #4222
This commit is contained in:
parent
1a8b9fda8a
commit
e0b224066e
3 changed files with 35 additions and 1 deletions
|
|
@ -14,6 +14,13 @@ enum criteria_type {
|
|||
CT_NO_FOCUS = 1 << 4,
|
||||
};
|
||||
|
||||
enum criteria_tribool_value {
|
||||
TRIBOOL_UNDEFINED = 0,
|
||||
TRIBOOL_TRUE = 1,
|
||||
TRIBOOL_FALSE = 2,
|
||||
};
|
||||
|
||||
|
||||
struct criteria {
|
||||
enum criteria_type type;
|
||||
char *raw; // entire criteria string (for logging)
|
||||
|
|
@ -37,6 +44,7 @@ struct criteria {
|
|||
bool tiling;
|
||||
char urgent; // 'l' for latest or 'o' for oldest
|
||||
pcre *workspace;
|
||||
enum criteria_tribool_value fullscreen;
|
||||
};
|
||||
|
||||
bool criteria_is_empty(struct criteria *criteria);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue