diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-06-01 15:41:49 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-01 15:41:49 -0700 |
commit | 96446fdbf748acfdbd4c60fbc0d12e45a27199fe (patch) | |
tree | 6d46cc61a1e7c74efe36565796ccbf8b47e7e4a7 /sway/criteria.c | |
parent | fd885d5779ef9aa408fa856a66fa7343ce01fa19 (diff) | |
parent | 70c2c504452eccbe5a74bc014e99b5b03db14124 (diff) |
Merge pull request #2027 from RyanDwyer/implement-floating
Implement floating
Diffstat (limited to 'sway/criteria.c')
-rw-r--r-- | sway/criteria.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/sway/criteria.c b/sway/criteria.c index dec5fed7..a263485a 100644 --- a/sway/criteria.c +++ b/sway/criteria.c @@ -121,12 +121,15 @@ static bool criteria_matches_view(struct criteria *criteria, } if (criteria->floating) { - // TODO - return false; + if (!container_is_floating(view->swayc)) { + return false; + } } if (criteria->tiling) { - // TODO + if (container_is_floating(view->swayc)) { + return false; + } } if (criteria->urgent) { |