aboutsummaryrefslogtreecommitdiffstats
path: root/include/util.h
diff options
context:
space:
mode:
authorLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-10-30 23:27:49 +1000
committerLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-10-30 23:27:49 +1000
commit7be309710dcd679e0b570bc2f076ac00ae9ad65d (patch)
tree66f53dddfcd94217beedf25272fe427a34ab665f /include/util.h
parentMerge pull request #3020 from emersion/swaymsg-return-status (diff)
downloadsway-7be309710dcd679e0b570bc2f076ac00ae9ad65d.tar.gz
sway-7be309710dcd679e0b570bc2f076ac00ae9ad65d.tar.zst
sway-7be309710dcd679e0b570bc2f076ac00ae9ad65d.zip
Remove enum movement_direction
There's no point having both movement_direction and wlr_direction. This replaces the former with the latter. As movement_direction also contained MOVE_PARENT and MOVE_CHILD items, these are now checked specifically in the focus command and handled in separate functions, just like the other focus variants.
Diffstat (limited to 'include/util.h')
-rw-r--r--include/util.h11
1 files changed, 0 insertions, 11 deletions
diff --git a/include/util.h b/include/util.h
index 19d2e7cf..c39c92b1 100644
--- a/include/util.h
+++ b/include/util.h
@@ -7,15 +7,6 @@
7#include <wlr/types/wlr_output_layout.h> 7#include <wlr/types/wlr_output_layout.h>
8#include <xkbcommon/xkbcommon.h> 8#include <xkbcommon/xkbcommon.h>
9 9
10enum movement_direction {
11 MOVE_LEFT,
12 MOVE_RIGHT,
13 MOVE_UP,
14 MOVE_DOWN,
15 MOVE_PARENT,
16 MOVE_CHILD,
17};
18
19/** 10/**
20 * Wrap i into the range [0, max[ 11 * Wrap i into the range [0, max[
21 */ 12 */
@@ -77,6 +68,4 @@ bool parse_boolean(const char *boolean, bool current);
77 */ 68 */
78char* resolve_path(const char* path); 69char* resolve_path(const char* path);
79 70
80bool sway_dir_to_wlr(enum movement_direction dir, enum wlr_direction *out);
81
82#endif 71#endif