aboutsummaryrefslogtreecommitdiff
path: root/sway/layout.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2015-08-22 15:21:56 -0400
committerDrew DeVault <sir@cmpwn.com>2015-08-22 15:21:56 -0400
commit1fd5962aeb5bab722a26182ad39fddecf43c6f95 (patch)
tree614cca20e3e136a9124cc0cb54d9d4df9bac8402 /sway/layout.c
parent07229edfe627762df9c27ed2700d737f74bb7b88 (diff)
Fix minor bug with output positioning
Diffstat (limited to 'sway/layout.c')
-rw-r--r--sway/layout.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/sway/layout.c b/sway/layout.c
index 7a7ccc0e..035fea34 100644
--- a/sway/layout.c
+++ b/sway/layout.c
@@ -362,12 +362,8 @@ swayc_t *get_swayc_in_direction(swayc_t *container, enum movement_direction dir)
}
}
} else if (dir == MOVE_LEFT) {
- sway_log(L_DEBUG, "next->x: %d, next->width: %d, container->x: %d",
- (int)next->x, (int)next->width, (int)container->x);
- if (container->x > next->x + next->width) {
- sway_log(L_DEBUG, "match");
+ if (container->x >= next->x + next->width) {
if (target == -1 || max_x < next->x) {
- sway_log(L_DEBUG, "hit");
target = i;
max_x = next->x;
}
@@ -380,7 +376,7 @@ swayc_t *get_swayc_in_direction(swayc_t *container, enum movement_direction dir)
}
}
} else if (dir == MOVE_UP) {
- if (container->y > next->y + next->height) {
+ if (container->y >= next->y + next->height) {
if (target == -1 || max_y < next->y) {
target = i;
max_y = next->y;