From f7cadf23332c469d34e7b5811469842d68ad9474 Mon Sep 17 00:00:00 2001 From: Ryan Dwyer Date: Tue, 29 May 2018 22:46:43 +1000 Subject: [PATCH] Adjust move command to account for changed coordinate system --- sway/commands/move.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/sway/commands/move.c b/sway/commands/move.c index 890b1a8c0..dc9a6f6fb 100644 --- a/sway/commands/move.c +++ b/sway/commands/move.c @@ -13,16 +13,14 @@ #include "stringop.h" #include "list.h" -static const char* expected_syntax = +static const char* expected_syntax = "Expected 'move <[px] px>' or " "'move to workspace ' or " "'move to output ' or " "'move position mouse'"; static struct sway_container *output_in_direction(const char *direction, - struct wlr_output *reference, int ref_ox, int ref_oy) { - int ref_lx = ref_ox + reference->lx, - ref_ly = ref_oy + reference->ly; + struct wlr_output *reference, int ref_lx, int ref_ly) { struct { char *name; enum wlr_direction direction;