make floating an enum (we need three states, not only two)
This commit is contained in:
parent
8d05039b04
commit
77ec4219c9
|
@ -240,16 +240,16 @@ struct Match {
|
|||
char *instance;
|
||||
xcb_window_t id;
|
||||
Con *con_id;
|
||||
bool floating;
|
||||
enum { M_ANY = 0, M_TILING, M_FLOATING } floating;
|
||||
|
||||
enum { M_GLOBAL, M_OUTPUT, M_WORKSPACE } levels;
|
||||
enum { M_GLOBAL = 0, M_OUTPUT, M_WORKSPACE } levels;
|
||||
|
||||
enum { M_USER, M_RESTART } source;
|
||||
enum { M_USER = 0, M_RESTART } source;
|
||||
|
||||
/* wo das fenster eingefügt werden soll. bei here wird es direkt
|
||||
* diesem Con zugewiesen, also layout saving. bei active ist es
|
||||
* ein assignment, welches an der momentan fokussierten stelle einfügt */
|
||||
enum { M_HERE, M_ACTIVE } insert_where;
|
||||
enum { M_HERE = 0, M_ACTIVE } insert_where;
|
||||
|
||||
TAILQ_ENTRY(Match) matches;
|
||||
};
|
||||
|
|
|
@ -18,7 +18,7 @@ bool match_is_empty(Match *match) {
|
|||
match->instance == NULL &&
|
||||
match->id == XCB_NONE &&
|
||||
match->con_id == NULL &&
|
||||
match->floating == false);
|
||||
match->floating == M_ANY);
|
||||
}
|
||||
|
||||
bool match_matches_window(Match *match, i3Window *window) {
|
||||
|
|
Loading…
Reference in New Issue