diff options
author | emersion <contact@emersion.fr> | 2018-10-30 15:17:55 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-30 15:17:55 +0100 |
commit | d3a62633113d487b5a5b1b484736dbe7cbe26bd0 (patch) | |
tree | 66f53dddfcd94217beedf25272fe427a34ab665f /common/util.c | |
parent | Merge pull request #3020 from emersion/swaymsg-return-status (diff) | |
parent | Remove enum movement_direction (diff) | |
download | sway-d3a62633113d487b5a5b1b484736dbe7cbe26bd0.tar.gz sway-d3a62633113d487b5a5b1b484736dbe7cbe26bd0.tar.zst sway-d3a62633113d487b5a5b1b484736dbe7cbe26bd0.zip |
Merge pull request #3033 from RyanDwyer/remove-movement-direction
Remove enum movement_direction
Diffstat (limited to 'common/util.c')
-rw-r--r-- | common/util.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/common/util.c b/common/util.c index 561b3804..467aa4b5 100644 --- a/common/util.c +++ b/common/util.c | |||
@@ -175,24 +175,3 @@ failed: | |||
175 | free(current); | 175 | free(current); |
176 | return NULL; | 176 | return NULL; |
177 | } | 177 | } |
178 | |||
179 | bool sway_dir_to_wlr(enum movement_direction dir, enum wlr_direction *out) { | ||
180 | switch (dir) { | ||
181 | case MOVE_UP: | ||
182 | *out = WLR_DIRECTION_UP; | ||
183 | break; | ||
184 | case MOVE_DOWN: | ||
185 | *out = WLR_DIRECTION_DOWN; | ||
186 | break; | ||
187 | case MOVE_LEFT: | ||
188 | *out = WLR_DIRECTION_LEFT; | ||
189 | break; | ||
190 | case MOVE_RIGHT: | ||
191 | *out = WLR_DIRECTION_RIGHT; | ||
192 | break; | ||
193 | default: | ||
194 | return false; | ||
195 | } | ||
196 | |||
197 | return true; | ||
198 | } | ||