summaryrefslogtreecommitdiff
path: root/sway/layout.c
diff options
context:
space:
mode:
authorDrew DeVault <[email protected]>2015-08-18 07:19:20 -0400
committerDrew DeVault <[email protected]>2015-08-18 07:20:34 -0400
commit2139001c9f61a84ed1ac581a54bb2bde68928afd (patch)
treea6efb486fdb71675775253d79e9550b5fc1d2f67 /sway/layout.c
parentaf1b3d97550c749de4e71f50784dc17f1a31c135 (diff)
Coding style enforcement
This was done by hand, so I might have missed things. If anyone knows of a good C style enforcement tool, let me know.
Diffstat (limited to 'sway/layout.c')
-rw-r--r--sway/layout.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/layout.c b/sway/layout.c
index d072c410..e2ea46a7 100644
--- a/sway/layout.c
+++ b/sway/layout.c
@@ -63,8 +63,8 @@ swayc_t *replace_child(swayc_t *child, swayc_t *new_child) {
swayc_t *remove_child(swayc_t *child) {
int i;
swayc_t *parent = child->parent;
- // Special case for floating views
if (child->is_floating) {
+ // Special case for floating views
for (i = 0; i < parent->floating->length; ++i) {
if (parent->floating->items[i] == child) {
list_del(parent->floating, i);