diff options
author | S. Christoffer Eliesen <christoffer@eliesen.no> | 2015-10-22 23:07:27 +0200 |
---|---|---|
committer | S. Christoffer Eliesen <christoffer@eliesen.no> | 2015-10-22 23:07:27 +0200 |
commit | b093a5d16f5e686f70e1ff20829246fecc840a5f (patch) | |
tree | 6c3386583cec8ed0225b06b8e8f806761f0cbeb5 | |
parent | 2c100105bf608d2a0c319c7fd67b319c86852270 (diff) |
handlers: Fix swapped top/bottom for seamless transitions.
-rw-r--r-- | sway/handlers.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/handlers.c b/sway/handlers.c index 6d3f48aa..6120e663 100644 --- a/sway/handlers.c +++ b/sway/handlers.c @@ -398,7 +398,7 @@ static bool handle_pointer_motion(wlc_handle handle, uint32_t time, const struct if (output->x == c->x && c->y + c->height == output->y) { sway_log(L_DEBUG, "%s is below %s", output->name, c->name); workspace_switch(c); - new_origin.y = 0; + new_origin.y = c->height; } } } else if ((double)origin->y == output->height) { // Bottom edge @@ -410,7 +410,7 @@ static bool handle_pointer_motion(wlc_handle handle, uint32_t time, const struct if (output->x == c->x && output->y + output->height == c->y) { sway_log(L_DEBUG, "%s is above %s", output->name, c->name); workspace_switch(c); - new_origin.y = c->height; + new_origin.y = 0; } } } |